Simplify the MSVC / superclock change which should now be compatible with all compilers
This commit is contained in:
parent
91f50b8a06
commit
14973bd894
@ -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)
|
||||
{
|
||||
|
@ -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
|
||||
|
||||
#ifdef DEBUG_EARLY_SCTS_USE
|
||||
static inline superclock_t superclock_ticks_per_second() {
|
||||
|
Loading…
Reference in New Issue
Block a user