13
0

Simplify the MSVC / superclock change which should now be compatible with all compilers

This commit is contained in:
John Emmas 2023-10-05 14:01:32 +01:00
parent 91f50b8a06
commit 14973bd894
2 changed files with 3 additions and 10 deletions

View File

@ -18,12 +18,10 @@
#include "temporal/superclock.h"
#ifndef COMPILER_MSVC
Temporal::superclock_t Temporal::_superclock_ticks_per_second = 0;
#endif
int Temporal::most_recent_engine_sample_rate = 48000; /* have to pick something as a default */
Temporal::superclock_t Temporal::_superclock_ticks_per_second = 0;
void
Temporal::set_sample_rate (int sr)
{

View File

@ -33,12 +33,7 @@
namespace Temporal {
typedef int64_t superclock_t;
#ifndef COMPILER_MSVC
LIBTEMPORAL_API extern superclock_t _superclock_ticks_per_second;
#else
static superclock_t _superclock_ticks_per_second = 0;
#endif
LIBTEMPORAL_API extern superclock_t _superclock_ticks_per_second;
#ifdef DEBUG_EARLY_SCTS_USE
static inline superclock_t superclock_ticks_per_second() {