Fix superclock init on Windows
Static global symbols on windows (even identical symbols) are
not mapped to the same address when mixing .dll + .exe.
see also d3cd621f7a
This commit is contained in:
parent
0e3cf0454c
commit
febc345414
@ -18,7 +18,7 @@
|
||||
|
||||
#include "temporal/superclock.h"
|
||||
|
||||
#ifndef COMPILER_MSVC
|
||||
#ifndef PLATFORM_WINDOWS
|
||||
Temporal::superclock_t Temporal::_superclock_ticks_per_second = 0;
|
||||
#endif
|
||||
|
||||
|
@ -34,7 +34,7 @@ namespace Temporal {
|
||||
|
||||
typedef int64_t superclock_t;
|
||||
|
||||
#ifndef COMPILER_MSVC
|
||||
#ifndef PLATFORM_WINDOWS
|
||||
extern superclock_t _superclock_ticks_per_second;
|
||||
#else
|
||||
static superclock_t _superclock_ticks_per_second = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user