Normally, timespec_get is aliased to either _timespec32_get or
_timespec64_get via an inline function in time.h. But by providing
a fallback alias in the import library, configure scripts that try
linking the function without actually including time.h will also
succeed - we also have other similar aliases added in
42aa3325fcfee934d7b706b701e49ee7a3c94982.

Signed-off-by: Martin Storsjö <[email protected]>
---
 mingw-w64-crt/lib-common/api-ms-win-crt-time-l1-1-0.def | 1 +
 mingw-w64-crt/lib-common/ucrtbase.def.in                | 1 +
 2 files changed, 2 insertions(+)

diff --git a/mingw-w64-crt/lib-common/api-ms-win-crt-time-l1-1-0.def 
b/mingw-w64-crt/lib-common/api-ms-win-crt-time-l1-1-0.def
index fcb62ae48..0e30b1127 100644
--- a/mingw-w64-crt/lib-common/api-ms-win-crt-time-l1-1-0.def
+++ b/mingw-w64-crt/lib-common/api-ms-win-crt-time-l1-1-0.def
@@ -86,3 +86,4 @@ gmtime == _gmtime64
 localtime == _localtime64
 mktime == _mktime64
 time == _time64
+timespec_get == _timespec64_get
diff --git a/mingw-w64-crt/lib-common/ucrtbase.def.in 
b/mingw-w64-crt/lib-common/ucrtbase.def.in
index 04db7f08a..a90fd72b7 100644
--- a/mingw-w64-crt/lib-common/ucrtbase.def.in
+++ b/mingw-w64-crt/lib-common/ucrtbase.def.in
@@ -2658,3 +2658,4 @@ gmtime == _gmtime64
 localtime == _localtime64
 mktime == _mktime64
 time == _time64
+timespec_get == _timespec64_get
-- 
2.25.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to