_HUGE global variable is available and exported from crtdll and msvcrt
libraries. So declare it explicitly via _CRTIMP as global variable and not
via __MINGW_IMP_SYMBOL pointer.
---
I'm really not sure what was the reason to define _HUGE via macro
__MINGW_IMP_SYMBOL poinster. So maybe there is a reason which I do not
see. I marked this patch as RFC, so please properly review it.
---
mingw-w64-headers/crt/math.h | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h
index 59560a351923..0cd08d3e4baf 100644
--- a/mingw-w64-headers/crt/math.h
+++ b/mingw-w64-headers/crt/math.h
@@ -145,11 +145,10 @@ extern "C" {
#ifndef _HUGE
#ifdef _UCRT
extern double const _HUGE;
-#define _HUGE _HUGE
#else
- extern double * __MINGW_IMP_SYMBOL(_HUGE);
-#define _HUGE (* __MINGW_IMP_SYMBOL(_HUGE))
+ _CRTIMP extern double const _HUGE;
#endif /* _UCRT */
+#define _HUGE _HUGE
#endif
#ifdef __GNUC__
--
2.20.1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public