13
0

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:
Robin Gareus 2023-10-04 23:34:40 +02:00
parent 0e3cf0454c
commit febc345414
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@
#include "temporal/superclock.h"
#ifndef COMPILER_MSVC
#ifndef PLATFORM_WINDOWS
Temporal::superclock_t Temporal::_superclock_ticks_per_second = 0;
#endif

View File

@ -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;