tweaks for linux compile

This commit is contained in:
sbaer
2018-10-11 16:00:48 -07:00
committed by Will Pearson
parent 361a335245
commit a9d3545472
8 changed files with 65 additions and 20 deletions

View File

@@ -2739,7 +2739,7 @@ ON__UINT64 ON_SecondsSinceJanOne1970UTC()
__time64_t t = _time64(nullptr);
return (ON__UINT64)t;
#elif defined(ON_COMPILER_CLANG)
#elif defined(ON_COMPILER_CLANG) || defined(ON_COMPILER_GNU)
//__time64_t t = _time64(nullptr);
time_t t = time(nullptr);
@@ -2779,7 +2779,7 @@ const ON_wString SecondsSinceJanOne1970UTCToString(
sec = uct.tm_sec;
}
#elif defined(ON_COMPILER_CLANG)
#elif defined(ON_COMPILER_CLANG) || defined(ON_COMPILER_GNU)
const time_t t = (time_t)seconds_since_epoch;
const struct tm* ptr = gmtime( &t );