OSDN Git Service

Correct use of MSVCRT_VERSION.
authorEarnie Boyd <earnie@users.sourceforge.net>
Tue, 28 May 2013 11:50:24 +0000 (07:50 -0400)
committerEarnie Boyd <earnie@users.sourceforge.net>
Tue, 28 May 2013 11:50:24 +0000 (07:50 -0400)
ChangeLog
include/time.h

index a2d857b..a1923a9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,14 +1,20 @@
+2013-05-28  Earnie Boyd  <earnie@users.sourceforge.net>
+
+       * include/time.h: Correct use of MSVCRT_VERSION.
+
 2013-05-27  Earnie Boyd  <earnie@users.sourceforge.net>
 
-       * types.h (_USE_32BIT_TIME_T): Rework the definitions controlled by
-       _USE_32BIT_TIME_T in light of MSVCRT_VERSION being different with
-       differing OS versions.
-       * time.h (_USE_32BIT_TIME_T): Ditto.
-       * stat.h (_USE_32BIT_TIME_T): Ditto.
-       * wchar.h (_USE_32BIT_TIME_T): Ditto.
-       * _mingw.h (_USE_32BIT_TIME_T): Issue a warning when _USE_32BIT_TIME_T
-       is enabled and MSVCRT_VERSION value does not support it.
-       * msvcrt.def.in: Always define all definitions in light of MSVCRT.DLL
+       * include/sys/types.h (_USE_32BIT_TIME_T): Rework the definitions
+       controlled by _USE_32BIT_TIME_T in light of MSVCRT_VERSION being
+       different with differing OS versions.
+       * include/time.h (_USE_32BIT_TIME_T): Ditto.
+       * include/sys/stat.h (_USE_32BIT_TIME_T): Ditto.
+       * include/wchar.h (_USE_32BIT_TIME_T): Ditto.
+       * include/_mingw.h (_USE_32BIT_TIME_T): Issue a warning when
+       _USE_32BIT_TIME_T is enabled and MSVCRT_VERSION value does not
+       support it.
+       * lib/lib32/msvcrt.def.in: Always define all definitions in light of
+       MSVCRT.DLL
        being different versions on differing OS.
        * TODO: Add a note about needing a warning when a function is being
        used but not defined within the MSVCRT_VERSION value.
index d6c57e1..571b14e 100644 (file)
@@ -143,7 +143,7 @@ _CRTIMP struct tm*  __cdecl __MINGW_NOTHROW _gmtime64 (const __time64_t*);
 _CRTIMP struct tm*  __cdecl __MINGW_NOTHROW _localtime64 (const __time64_t*);
 
 /* These require newer versions of msvcrt.dll (8.00 or higher). */
-#ifdef MSVCRT_VERSION >= 800
+#if MSVCRT_VERSION >= 800
 _CRTIMP __time32_t __cdecl __MINGW_NOTHROW     _time32     (__time32_t*);
 _CRTIMP double    __cdecl __MINGW_NOTHROW      _difftime32 (__time32_t, __time32_t);
 _CRTIMP double    __cdecl __MINGW_NOTHROW      _difftime64 (__time64_t, __time64_t);