Skip to content

Commit 8063ed2

Browse files
committed
win32: use posix time on MinGW
1 parent 9b6d0f7 commit 8063ed2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/shared/platform/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,17 @@ if (WIN32)
1515
"win/nacl_semaphore.c"
1616
"win/nacl_sync_win.cc"
1717
"win/nacl_threads.c"
18-
"win/nacl_time.c"
1918
"win/nacl_timestamp.c"
2019
"win/port_win.c"
2120
"win/xlate_system_error.c"
2221
)
2322

23+
if (MSVC)
24+
list(APPEND PLATFORM_INPUTS "win/nacl_time.c")
25+
else()
26+
list(APPEND PLATFORM_INPUTS "posix/nacl_time.c")
27+
endif()
28+
2429
if (MSVC)
2530
list(APPEND PLATFORM_FLAGS "/D_CRT_RAND_S")
2631
list(APPEND PLATFORM_FLAGS "/D_UNICODE")

0 commit comments

Comments
 (0)