Gate some calls with __EMSCRIPTEN__
PiperOrigin-RevId: 762520516 Change-Id: If9f7729721bab8c947861a968cf96eecc6591228
This commit is contained in:
committed by
Copybara-Service
parent
9e4931b79d
commit
eb6f7dc6b7
@@ -97,7 +97,7 @@ void mju_writeLog(const char* type, const char* msg) {
|
||||
// get time
|
||||
time(&rawtime);
|
||||
|
||||
#if defined(_POSIX_C_SOURCE) || defined(__APPLE__) || defined(__STDC_VERSION_TIME_H__)
|
||||
#if defined(_POSIX_C_SOURCE) || defined(__APPLE__) || defined(__STDC_VERSION_TIME_H__) || defined(__EMSCRIPTEN__)
|
||||
localtime_r(&rawtime, &timeinfo);
|
||||
#elif _MSC_VER
|
||||
localtime_s(&timeinfo, &rawtime);
|
||||
|
||||
Reference in New Issue
Block a user