Re: [Mingw-w64-public] [PATCH] crt: Add an alias from _ftime to _ftime32 for ucrtbase

2017-11-16 Thread Martin Storsjö

On Tue, 14 Nov 2017, Martin Storsjö wrote:


For 32 bit platforms, the "ftime" function ends up as a
reference to _ftime.

We could do this in the headers, but MSVC has got a similar
linker alias, so this solution should also cover cases when
a caller ends up with a reference to _ftime via some other
means.

Signed-off-by: Martin Storsjö 
---
mingw-w64-crt/lib-common/ucrtbase.def.in | 1 +
1 file changed, 1 insertion(+)

diff --git a/mingw-w64-crt/lib-common/ucrtbase.def.in 
b/mingw-w64-crt/lib-common/ucrtbase.def.in
index 71f2af1..c809747 100644
--- a/mingw-w64-crt/lib-common/ucrtbase.def.in
+++ b/mingw-w64-crt/lib-common/ucrtbase.def.in
@@ -364,6 +364,7 @@ _fstat64i32
_ftell_nolock
_ftelli64
_ftelli64_nolock
+_ftime == _ftime32
_ftime32
_ftime32_s
_ftime64
--
2.7.4


OK'd by Jacek on irc, pushed.

// Martin
--
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


[Mingw-w64-public] [PATCH] crt: Add an alias from _ftime to _ftime32 for ucrtbase

2017-11-14 Thread Martin Storsjö
For 32 bit platforms, the "ftime" function ends up as a
reference to _ftime.

We could do this in the headers, but MSVC has got a similar
linker alias, so this solution should also cover cases when
a caller ends up with a reference to _ftime via some other
means.

Signed-off-by: Martin Storsjö 
---
 mingw-w64-crt/lib-common/ucrtbase.def.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mingw-w64-crt/lib-common/ucrtbase.def.in 
b/mingw-w64-crt/lib-common/ucrtbase.def.in
index 71f2af1..c809747 100644
--- a/mingw-w64-crt/lib-common/ucrtbase.def.in
+++ b/mingw-w64-crt/lib-common/ucrtbase.def.in
@@ -364,6 +364,7 @@ _fstat64i32
 _ftell_nolock
 _ftelli64
 _ftelli64_nolock
+_ftime == _ftime32
 _ftime32
 _ftime32_s
 _ftime64
-- 
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