crt: Enable HUGE symbol alias

It is available in msvc, so enable it also in mingw-w64 import libraries

Signed-off-by: Martin Storsjö <martin@martin.st>
diff --git a/mingw-w64-crt/def-include/crt-aliases.def.in b/mingw-w64-crt/def-include/crt-aliases.def.in
index 70ac50b..2d07175 100644
--- a/mingw-w64-crt/def-include/crt-aliases.def.in
+++ b/mingw-w64-crt/def-include/crt-aliases.def.in
@@ -74,12 +74,11 @@
 #endif
 ; ADD_UNDERSCORE(ftime)
 #if defined(UCRTBASE)
-; _HUGE variable is provided by math/_huge.c
-; HUGE alias is not defined
+; HUGE alias and _HUGE variable are provided by math/_huge.c
 #elif defined(CRTDLL)
-; ADD_UNDERSCORE_DATA_DLL(HUGE)
+ADD_UNDERSCORE_DATA_DLL(HUGE)
 #else
-; ADD_UNDERSCORE_DATA(HUGE)
+ADD_UNDERSCORE_DATA(HUGE)
 #endif
 ADD_UNDERSCORE(gcvt)
 #ifndef CRTAPP
diff --git a/mingw-w64-crt/math/_huge.c b/mingw-w64-crt/math/_huge.c
index 1ca9595..7856d75 100644
--- a/mingw-w64-crt/math/_huge.c
+++ b/mingw-w64-crt/math/_huge.c
@@ -3,3 +3,5 @@
 #undef _HUGE
 static double _HUGE = __builtin_huge_val();
 double * __MINGW_IMP_SYMBOL(_HUGE) = &_HUGE;
+#undef HUGE
+extern double * __attribute__ ((alias (__MINGW64_STRINGIFY(__MINGW_IMP_SYMBOL(_HUGE))))) __MINGW_IMP_SYMBOL(HUGE);