| From fa7be56b0c792732aaa07b1f778987c51f38b810 Mon Sep 17 00:00:00 2001 |
| From: Alethea Rose <alethea@alethearose.com> |
| Date: Tue, 14 Feb 2017 23:07:39 -0500 |
| Subject: [PATCH 04/23] Define localtime_s for MinGW |
| |
| --- |
| deps/v8/src/base/platform/platform-win32.cc | 3 +-- |
| 1 file changed, 1 insertion(+), 2 deletions(-) |
| |
| diff --git a/deps/v8/src/base/platform/platform-win32.cc b/deps/v8/src/base/platform/platform-win32.cc |
| index 7ce0a0d5..9453a673 100644 |
| --- a/deps/v8/src/base/platform/platform-win32.cc |
| +++ b/deps/v8/src/base/platform/platform-win32.cc |
| @@ -42,8 +42,6 @@ inline void MemoryFence() { |
| __asm__ __volatile__("xchgl %%eax,%0 ":"=r" (barrier)); |
| } |
| |
| -#endif // __MINGW64_VERSION_MAJOR |
| - |
| |
| int localtime_s(tm* out_tm, const time_t* time) { |
| tm* posix_local_time_struct = localtime_r(time, out_tm); |
| @@ -51,6 +49,7 @@ int localtime_s(tm* out_tm, const time_t* time) { |
| return 0; |
| } |
| |
| +#endif // __MINGW64_VERSION_MAJOR |
| |
| int fopen_s(FILE** pFile, const char* filename, const char* mode) { |
| *pFile = fopen(filename, mode); |
| -- |
| 2.17.0.windows.1 |
| |