Signed-off-by: Martin Storsjö <mar...@martin.st>
---
 mingw-w64-headers/crt/time.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/mingw-w64-headers/crt/time.h b/mingw-w64-headers/crt/time.h
index 3e989d5..ac9afe8 100644
--- a/mingw-w64-headers/crt/time.h
+++ b/mingw-w64-headers/crt/time.h
@@ -109,10 +109,21 @@ extern "C" {
 
 #define CLOCKS_PER_SEC 1000
 
+#if __MSVCRT_VERSION__ >= 0x1400
+  _CRTIMP int *__cdecl __daylight(void);
+  _CRTIMP long *__cdecl __dstbias(void);
+  _CRTIMP long *__cdecl __timezone(void);
+  _CRTIMP char **__cdecl __tzname(void);
+#define _daylight (* __daylight())
+#define _dstbias (* __dstbias())
+#define _timezone (* __timezone())
+#define _tzname (__tzname())
+#else
   __MINGW_IMPORT int _daylight;
   __MINGW_IMPORT long _dstbias;
   __MINGW_IMPORT long _timezone;
   __MINGW_IMPORT char * _tzname[2];
+#endif
 
   _CRTIMP errno_t __cdecl _get_daylight(int *_Daylight);
   _CRTIMP errno_t __cdecl _get_dstbias(long *_Daylight_savings_bias);
-- 
2.7.4


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to