OSDN Git Service

include/time.h: Correct typos. Add MSVCRT_VERSION >= 800 guard for _CRTALIAS of _wctime.
authorJan Nitjmans <nijtmans@users.sourceforge.net>
Fri, 7 Jun 2013 22:47:09 +0000 (18:47 -0400)
committerEarnie Boyd <earnie@users.sourceforge.net>
Fri, 7 Jun 2013 22:47:09 +0000 (18:47 -0400)
ChangeLog
include/time.h

index 99b72f0..991f94c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-06-07  Jan Nijtmans <nijtmans@users.sourceforge.net>
+
+       * include/time.h: Correct typos. Add MSVCRT_VERSION >= 800 guard for
+       _CRTALIAS of _wctime.
+
 2013-06-05  Mark  <mabrand@users.sourceforge.net>
 
        * include/shlobj.h (SHGetFolderPath): Correct typo for UNICODE define.
index 5578518..ca55701 100644 (file)
@@ -247,21 +247,27 @@ __MINGW_IMPORT char       *tzname[2];
 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW       _wasctime(const struct tm*);
 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW       _wstrdate(wchar_t*);
 _CRTIMP wchar_t* __cdecl __MINGW_NOTHROW       _wstrtime(wchar_t*);
-_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW        _wctime(const time_t*);
-_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW       _wctime64 (const __time64_t*);
-#ifdef MSVCRT_VERSION >= 800
-_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW       _wctime32 (const __time32_t*);
+_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW       _wctime64(const __time64_t*);
+#if MSVCRT_VERSION >= 800
+_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW       _wctime32(const __time32_t*);
 #else
-_CRTALIAS whcar_t* __cdecl __MINGW_NOTHROW  _wctime32 (const __time32_t* _v) {
+_CRTIMP wchar_t* __cdecl __MINGW_NOTHROW    _wctime(const time_t*);
+_CRTALIAS wchar_t* __cdecl __MINGW_NOTHROW  _wctime32(const __time32_t* _v) {
     return(_wctime((time_t)_v));
 }
 #endif /* MSVCRT_VERSION >= 800 */
 
 #ifdef _USE_32BIT_TIME_T
-_CRTALIAS wchar_t* __cdecl __MINGW_NOTHROW     _wctime (const time_t* _v) { return(_wctime32 (_v)); }
-#else
-_CRTALIAS wchar_t* __cdecl __MINGW_NOTHROW     _wctime (const time_t* _v) { return(_wctime64 (_v)); }
+#if MSVCRT_VERSION >= 800
+_CRTALIAS wchar_t* __cdecl __MINGW_NOTHROW     _wctime (const time_t* _v) {
+    return(_wctime32 (_v));
+}
 #endif
+#else /* ndef _USE_32BIT_TIME_T */
+_CRTALIAS wchar_t* __cdecl __MINGW_NOTHROW     _wctime (const time_t* _v) {
+    return(_wctime64 (_v));
+}
+#endif /* def _USE_32BIT_TIME_T */
 
 #endif /* __STRICT_ANSI__ */