From: <wa...@us...> - 2013-04-04 10:20:28
|
Revision: 5718 http://mingw-w64.svn.sourceforge.net/mingw-w64/?rev=5718&view=rev Author: wavael Date: 2013-04-04 10:20:16 +0000 (Thu, 04 Apr 2013) Log Message: ----------- Provide gmtime/_gmtime32/_gmtime64 for all msvcrt versions through .def files Remove gmtime/_gmtime32 .c replacements Modified Paths: -------------- trunk/mingw-w64-crt/Makefile.am trunk/mingw-w64-crt/lib32/msvcr100.def trunk/mingw-w64-crt/lib32/msvcr110.def trunk/mingw-w64-crt/lib32/msvcr80.def trunk/mingw-w64-crt/lib32/msvcr90.def trunk/mingw-w64-crt/lib32/msvcr90d.def trunk/mingw-w64-crt/lib32/msvcrt.def trunk/mingw-w64-crt/lib64/msvcr100.def trunk/mingw-w64-crt/lib64/msvcr110.def trunk/mingw-w64-crt/lib64/msvcr80.def trunk/mingw-w64-crt/lib64/msvcr90.def trunk/mingw-w64-crt/lib64/msvcr90d.def trunk/mingw-w64-crt/lib64/msvcrt.def Removed Paths: ------------- trunk/mingw-w64-crt/misc/_gmtime32.c trunk/mingw-w64-crt/misc/gmtime.c Modified: trunk/mingw-w64-crt/Makefile.am =================================================================== --- trunk/mingw-w64-crt/Makefile.am 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/Makefile.am 2013-04-04 10:20:16 UTC (rev 5718) @@ -175,7 +175,7 @@ math/powi.def.h math/sin.def.h math/sqrt.def.h \ math/cephes_emath.h math/cephes_mconf.h math/fastmath.h math/fp_consts.h math/abs64.c \ \ - misc/_gmtime32.c misc/_localtime32.c misc/_mkgmtime.c misc/_mkgmtime32.c \ + misc/_localtime32.c misc/_mkgmtime.c misc/_mkgmtime32.c \ misc/_mktime32.c misc/_wctime.c misc/_wctime32.c misc/alarm.c \ misc/basename.c misc/btowc.c misc/delay-f.c misc/delay-n.c \ misc/delayimp.c misc/difftime.c misc/difftime32.c misc/difftime64.c misc/dirent.c \ @@ -183,7 +183,7 @@ misc/feclearexcept.c misc/fegetenv.c misc/fegetexceptflag.c misc/fegetround.c misc/feholdexcept.c \ misc/feraiseexcept.c misc/fesetenv.c misc/fesetexceptflag.c misc/fesetround.c misc/fetestexcept.c \ misc/feupdateenv.c misc/ftruncate.c misc/fwide.c misc/getlogin.c misc/getopt.c \ - misc/gettimeofday.c misc/gmtime.c misc/imaxabs.c misc/imaxdiv.c misc/isblank.c \ + misc/gettimeofday.c misc/imaxabs.c misc/imaxdiv.c misc/isblank.c \ misc/iswblank.c misc/localtime.c misc/mb_wc_common.h misc/mbrtowc.c misc/mbsinit.c \ misc/mempcpy.c misc/mingw-aligned-malloc.c misc/mingw-fseek.c misc/mingw_get_codepage.c misc/mingw_getsp.S \ misc/mingw_matherr.c misc/mingw_mbwc_convert.c misc/mingw_output_format.c misc/mingw_usleep.c misc/mingw_wcstod.c \ Modified: trunk/mingw-w64-crt/lib32/msvcr100.def =================================================================== --- trunk/mingw-w64-crt/lib32/msvcr100.def 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/lib32/msvcr100.def 2013-04-04 10:20:16 UTC (rev 5718) @@ -946,7 +946,8 @@ _getws _getws_s _global_unwind2 -_gmtime32 DATA +_gmtime32 +gmtime == _gmtime32 _gmtime32_s _gmtime64 _gmtime64_s Modified: trunk/mingw-w64-crt/lib32/msvcr110.def =================================================================== --- trunk/mingw-w64-crt/lib32/msvcr110.def 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/lib32/msvcr110.def 2013-04-04 10:20:16 UTC (rev 5718) @@ -1069,6 +1069,7 @@ _getws_s _global_unwind2 _gmtime32 +gmtime == _gmtime32 _gmtime32_s _gmtime64 _gmtime64_s Modified: trunk/mingw-w64-crt/lib32/msvcr80.def =================================================================== --- trunk/mingw-w64-crt/lib32/msvcr80.def 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/lib32/msvcr80.def 2013-04-04 10:20:16 UTC (rev 5718) @@ -569,8 +569,8 @@ gets getwc getwchar -gmtime DATA -;_gmtime32 = gmtime +_gmtime32 +gmtime == _gmtime32 is_wctype isalnum isalpha Modified: trunk/mingw-w64-crt/lib32/msvcr90.def =================================================================== --- trunk/mingw-w64-crt/lib32/msvcr90.def 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/lib32/msvcr90.def 2013-04-04 10:20:16 UTC (rev 5718) @@ -575,7 +575,8 @@ _getws _getws_s _global_unwind2 -_gmtime32 DATA +_gmtime32 +gmtime == _gmtime32 _gmtime32_s _gmtime64 _gmtime64_s Modified: trunk/mingw-w64-crt/lib32/msvcr90d.def =================================================================== --- trunk/mingw-w64-crt/lib32/msvcr90d.def 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/lib32/msvcr90d.def 2013-04-04 10:20:16 UTC (rev 5718) @@ -639,6 +639,7 @@ _getws_s _global_unwind2 _gmtime32 +gmtime == _gmtime32 _gmtime32_s _gmtime64 _gmtime64_s Modified: trunk/mingw-w64-crt/lib32/msvcrt.def =================================================================== --- trunk/mingw-w64-crt/lib32/msvcrt.def 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/lib32/msvcrt.def 2013-04-04 10:20:16 UTC (rev 5718) @@ -571,8 +571,8 @@ gets getwc getwchar -gmtime DATA -;_gmtime32 = gmtime +gmtime +_gmtime32 == gmtime is_wctype isalnum isalpha Modified: trunk/mingw-w64-crt/lib64/msvcr100.def =================================================================== --- trunk/mingw-w64-crt/lib64/msvcr100.def 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/lib64/msvcr100.def 2013-04-04 10:20:16 UTC (rev 5718) @@ -901,9 +901,10 @@ _getwche_nolock _getws _getws_s -_gmtime32 DATA +_gmtime32 _gmtime32_s _gmtime64 +gmtime == _gmtime64 _gmtime64_s _heapadd _heapchk Modified: trunk/mingw-w64-crt/lib64/msvcr110.def =================================================================== --- trunk/mingw-w64-crt/lib64/msvcr110.def 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/lib64/msvcr110.def 2013-04-04 10:20:16 UTC (rev 5718) @@ -1028,6 +1028,7 @@ _gmtime32 _gmtime32_s _gmtime64 +gmtime == _gmtime64 _gmtime64_s _heapadd _heapchk Modified: trunk/mingw-w64-crt/lib64/msvcr80.def =================================================================== --- trunk/mingw-w64-crt/lib64/msvcr80.def 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/lib64/msvcr80.def 2013-04-04 10:20:16 UTC (rev 5718) @@ -698,8 +698,8 @@ gets getwc getwchar -gmtime DATA -;_gmtime32 = gmtime +gmtime == _gmtime64 +_gmtime32 is_wctype isalnum isalpha Modified: trunk/mingw-w64-crt/lib64/msvcr90.def =================================================================== --- trunk/mingw-w64-crt/lib64/msvcr90.def 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/lib64/msvcr90.def 2013-04-04 10:20:16 UTC (rev 5718) @@ -520,7 +520,8 @@ _getwche_nolock _getws _getws_s -_gmtime32 DATA +_gmtime32 +gmtime == _gmtime64 _gmtime32_s _gmtime64 _gmtime64_s Modified: trunk/mingw-w64-crt/lib64/msvcr90d.def =================================================================== --- trunk/mingw-w64-crt/lib64/msvcr90d.def 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/lib64/msvcr90d.def 2013-04-04 10:20:16 UTC (rev 5718) @@ -578,6 +578,7 @@ _getws _getws_s _gmtime32 +gmtime == _gmtime64 _gmtime32_s _gmtime64 _gmtime64_s Modified: trunk/mingw-w64-crt/lib64/msvcrt.def =================================================================== --- trunk/mingw-w64-crt/lib64/msvcrt.def 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/lib64/msvcrt.def 2013-04-04 10:20:16 UTC (rev 5718) @@ -1088,8 +1088,7 @@ gets getwc getwchar -gmtime DATA -;_gmtime32 = gmtime +gmtime is_wctype isalnum isalpha Deleted: trunk/mingw-w64-crt/misc/_gmtime32.c =================================================================== --- trunk/mingw-w64-crt/misc/_gmtime32.c 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/misc/_gmtime32.c 2013-04-04 10:20:16 UTC (rev 5718) @@ -1,11 +0,0 @@ -#ifndef __NO_INLINE__ -#define __NO_INLINE__ -#endif -#include <time.h> - -extern struct tm * (__cdecl *__MINGW_IMP_SYMBOL(gmtime))(const __time32_t *); - -struct tm *__cdecl _gmtime32(const __time32_t *_Time) -{ - return (*__MINGW_IMP_SYMBOL(gmtime))(_Time); -} Deleted: trunk/mingw-w64-crt/misc/gmtime.c =================================================================== --- trunk/mingw-w64-crt/misc/gmtime.c 2013-04-04 10:19:33 UTC (rev 5717) +++ trunk/mingw-w64-crt/misc/gmtime.c 2013-04-04 10:20:16 UTC (rev 5718) @@ -1,20 +0,0 @@ -#define __CRT__NO_INLINE -#include <time.h> - -/* FIXME: Relying on _USE_32BIT_TIME_T, which is a user-macro, -during CRT compilation is plainly broken. Need an appropriate -implementation to provide users the ability of compiling the -CRT only with 32-bit time_t behavior. */ - -#ifndef _USE_32BIT_TIME_T -struct tm *__cdecl gmtime(const time_t *_Time) -{ - return _gmtime64(_Time); -} -#else -struct tm *__cdecl gmtime(const time_t *_Time) -{ - return _gmtime32(_Time); -} -#endif - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |