Header file time.h already redirects function call gmtime() to _gmtime32(). So if object file compiled with time.h is linked with e.g. libmsvcrt40.a import library then it is needed to add redirection from _gmtime32 symbol to gmtime symbol into libmsvcrt40.a library to ensure that application would use gmtime symbol, because msvcrt40.dll does not provide _gmtime32. Same applies for all other 32-bit time symbols. --- mingw-w64-crt/lib32/crtdll.def.in | 14 +++++++++----- mingw-w64-crt/lib32/msvcr70.def.in | 11 +++++++++++ mingw-w64-crt/lib32/msvcr71.def.in | 11 +++++++++++ mingw-w64-crt/lib32/msvcrt10.def.in | 9 +++++++++ mingw-w64-crt/lib32/msvcrt20.def.in | 11 +++++++++++ mingw-w64-crt/lib32/msvcrt40.def.in | 11 +++++++++++ 6 files changed, 62 insertions(+), 5 deletions(-)
diff --git a/mingw-w64-crt/lib32/crtdll.def.in b/mingw-w64-crt/lib32/crtdll.def.in index e388622a4351..e98d70d6d099 100644 --- a/mingw-w64-crt/lib32/crtdll.def.in +++ b/mingw-w64-crt/lib32/crtdll.def.in @@ -197,9 +197,11 @@ _fputwchar _fsopen _fstat _ftime +_ftime32 == _ftime _ftol _fullpath _futime +_futime32 == _futime _gcvt _get_osfhandle _getch @@ -406,6 +408,7 @@ _ungetch _unlink _unloaddll _utime +_utime32 == _utime _vsnprintf _vsnwprintf _wcsdup @@ -449,8 +452,9 @@ clock cos DATA cosh ctime DATA -;_ctime32 = ctime +_ctime32 == ctime difftime +_difftime32 == difftime div exit exp DATA @@ -486,7 +490,7 @@ getchar getenv gets gmtime DATA -;_gmtime32 = gmtime +_gmtime32 == gmtime is_wctype isalnum isalpha @@ -518,7 +522,7 @@ ldexp DATA ldiv localeconv localtime DATA -;_localtime32 = localtime +_localtime32 == localtime log log10 longjmp @@ -532,7 +536,7 @@ memcpy memmove memset mktime DATA -;_mktime32 = mktime +_mktime32 == mktime modf perror pow @@ -585,7 +589,7 @@ system tan tanh time DATA -;_time32 = time +_time32 == time tmpfile tmpnam tolower diff --git a/mingw-w64-crt/lib32/msvcr70.def.in b/mingw-w64-crt/lib32/msvcr70.def.in index 721dd7959868..e80d2b68a5bc 100644 --- a/mingw-w64-crt/lib32/msvcr70.def.in +++ b/mingw-w64-crt/lib32/msvcr70.def.in @@ -349,10 +349,12 @@ _fstat _fstat64 _fstati64 _ftime +_ftime32 == _ftime _ftime64 _ftol _fullpath _futime +_futime32 == _futime _futime64 _gcvt _get_osfhandle @@ -614,6 +616,7 @@ _unlink _unloaddll _unlock _utime +_utime32 == _utime _utime64 _vscprintf _vscwprintf @@ -640,6 +643,7 @@ _wcstoi64 _wcstoui64 _wcsupr _wctime +_wctime32 == _wctime _wctime64 _wctype DATA _wenviron DATA @@ -706,6 +710,7 @@ _wtoi64 _wtol _wunlink _wutime +_wutime32 == _wutime _wutime64 _y0 _y1 @@ -729,7 +734,9 @@ clock cos cosh ctime +_ctime32 == ctime difftime +_difftime32 == difftime div exit exp @@ -769,6 +776,7 @@ gets getwc getwchar gmtime +_gmtime32 == gmtime is_wctype isalnum isalpha @@ -800,6 +808,7 @@ ldexp ldiv localeconv localtime +_localtime32 == localtime log log10 longjmp @@ -813,6 +822,7 @@ memcpy memmove memset mktime +_mktime32 == mktime modf perror pow @@ -867,6 +877,7 @@ system tan tanh time +_time32 == time tmpfile tmpnam tolower diff --git a/mingw-w64-crt/lib32/msvcr71.def.in b/mingw-w64-crt/lib32/msvcr71.def.in index 7e120a22fc10..66c87d1dc654 100644 --- a/mingw-w64-crt/lib32/msvcr71.def.in +++ b/mingw-w64-crt/lib32/msvcr71.def.in @@ -342,10 +342,12 @@ _fstat _fstat64 _fstati64 _ftime +_ftime32 == _ftime _ftime64 _ftol _fullpath _futime +_futime32 == _futime _futime64 _gcvt _get_heap_handle @@ -609,6 +611,7 @@ _unlink _unloaddll _unlock _utime +_utime32 == _utime _utime64 _vscprintf _vscwprintf @@ -635,6 +638,7 @@ _wcstoi64 _wcstoui64 _wcsupr _wctime +_wctime32 == _wctime _wctime64 _wctype DATA _wenviron DATA @@ -701,6 +705,7 @@ _wtoi64 _wtol _wunlink _wutime +_wutime32 == _wutime _wutime64 _y0 _y1 @@ -724,7 +729,9 @@ clock cos cosh ctime +_ctime32 == ctime difftime +_difftime32 == difftime div exit exp @@ -764,6 +771,7 @@ gets getwc getwchar gmtime +_gmtime32 == gmtime is_wctype isalnum isalpha @@ -795,6 +803,7 @@ ldexp ldiv localeconv localtime +_localtime32 == localtime log log10 longjmp @@ -808,6 +817,7 @@ memcpy memmove memset mktime +_mktime32 == mktime modf perror pow @@ -862,6 +872,7 @@ system tan tanh time +_time32 == time tmpfile tmpnam tolower diff --git a/mingw-w64-crt/lib32/msvcrt10.def.in b/mingw-w64-crt/lib32/msvcrt10.def.in index 58c4a3673745..00c2ef017076 100644 --- a/mingw-w64-crt/lib32/msvcrt10.def.in +++ b/mingw-w64-crt/lib32/msvcrt10.def.in @@ -972,9 +972,11 @@ _fputwchar _fsopen _fstat _ftime +_ftime32 == _ftime _ftol _fullpath _futime +_futime32 == _futime _gcvt _get_osfhandle _getch @@ -1090,6 +1092,7 @@ _umask _ungetch _unlink _utime +_utime32 == _utime _vsnprintf _vsnwprintf _wcsdup @@ -1127,7 +1130,9 @@ clock cos cosh ctime +_ctime32 == ctime difftime +_difftime32 == difftime div exit exp @@ -1163,6 +1168,7 @@ getchar getenv gets gmtime +_gmtime32 == gmtime isalnum isalpha iscntrl @@ -1193,6 +1199,7 @@ ldexp ldiv localeconv localtime +_localtime32 == localtime log log10 longjmp @@ -1206,6 +1213,7 @@ memcpy memmove memset mktime +_mktime32 == mktime modf perror pow @@ -1258,6 +1266,7 @@ system tan tanh time +_time32 == time tmpfile tmpnam tolower diff --git a/mingw-w64-crt/lib32/msvcrt20.def.in b/mingw-w64-crt/lib32/msvcrt20.def.in index 51999bd09965..24fee4a2140f 100644 --- a/mingw-w64-crt/lib32/msvcrt20.def.in +++ b/mingw-w64-crt/lib32/msvcrt20.def.in @@ -1042,9 +1042,11 @@ _fputwchar _fsopen _fstat _ftime +_ftime32 == _ftime _ftol _fullpath _futime +_futime32 == _futime _gcvt _get_osfhandle _getch @@ -1297,6 +1299,7 @@ _ungetch _unlink _unloaddll _utime +_utime32 == _utime _vsnprintf _vsnwprintf _waccess @@ -1317,6 +1320,7 @@ _wcsrev _wcsset _wcsupr _wctime +_wctime32 == _wctime _wenviron DATA _wexecl _wexecle @@ -1373,6 +1377,7 @@ _wtoi _wtol _wunlink _wutime +_wutime32 == _wutime _y0 _y1 _yn @@ -1395,7 +1400,9 @@ clock cos cosh ctime +_ctime32 == ctime difftime +_difftime32 == difftime div exit exp @@ -1435,6 +1442,7 @@ gets getwc getwchar gmtime +_gmtime32 == gmtime is_wctype isalnum isalpha @@ -1466,6 +1474,7 @@ ldexp ldiv localeconv localtime +_localtime32 == localtime log log10 longjmp @@ -1479,6 +1488,7 @@ memcpy memmove memset mktime +_mktime32 == mktime modf perror pow @@ -1533,6 +1543,7 @@ system tan tanh time +_time32 == time tmpfile tmpnam tolower diff --git a/mingw-w64-crt/lib32/msvcrt40.def.in b/mingw-w64-crt/lib32/msvcrt40.def.in index 0d1104a9abb0..4d54b8813ac8 100644 --- a/mingw-w64-crt/lib32/msvcrt40.def.in +++ b/mingw-w64-crt/lib32/msvcrt40.def.in @@ -1145,9 +1145,11 @@ _fsopen _fstat _fstati64 _ftime +_ftime32 == _ftime _ftol _fullpath _futime +_futime32 == _futime _gcvt _get_osfhandle _getch @@ -1378,6 +1380,7 @@ _ungetch _unlink _unloaddll _utime +_utime32 == _utime _vsnprintf _vsnwprintf _waccess @@ -1398,6 +1401,7 @@ _wcsrev _wcsset _wcsupr _wctime +_wctime32 == _wctime _wenviron DATA _wexecl _wexecle @@ -1457,6 +1461,7 @@ _wtoi _wtol _wunlink _wutime +_wutime32 == _wutime _y0 _y1 _yn @@ -1479,7 +1484,9 @@ clock cos cosh ctime +_ctime32 == ctime difftime +_difftime32 == difftime div exit exp @@ -1519,6 +1526,7 @@ gets getwc getwchar gmtime +_gmtime32 == gmtime is_wctype isalnum isalpha @@ -1550,6 +1558,7 @@ ldexp ldiv localeconv localtime +_localtime32 == localtime log log10 longjmp @@ -1563,6 +1572,7 @@ memcpy memmove memset mktime +_mktime32 == mktime modf perror pow @@ -1617,6 +1627,7 @@ system tan tanh time +_time32 == time tmpfile tmpnam tolower -- 2.20.1 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public