diff --git a/Contrib/Library/RegTool/RegTool.cpp b/Contrib/Library/RegTool/RegTool.cpp index 7de36d4e..136eb2b8 100644 --- a/Contrib/Library/RegTool/RegTool.cpp +++ b/Contrib/Library/RegTool/RegTool.cpp @@ -6,6 +6,10 @@ #define STR_SIZE 1024 +#if defined(_MSC_VER) && _MSC_VER-0 >= 1600 && _MSC_VER-0 <= 1800 // MSVC complains about math stuff we are not even using (bug #1159) +EXTERN_C int _fltused = 0; +EXTERN_C double _hypot(double x, double y) { return 0.0; } +#endif /* All A/W functions need this ugly hack so we can call them in template functions. diff --git a/Contrib/MakeLangId/MakeLangId.cpp b/Contrib/MakeLangId/MakeLangId.cpp index 69453211..4b426f01 100644 --- a/Contrib/MakeLangId/MakeLangId.cpp +++ b/Contrib/MakeLangId/MakeLangId.cpp @@ -28,6 +28,11 @@ https://wayback.archive.org/web/20021221200122/http://msdn.microsoft.com/library #include #include "resource.h" +#if defined(_MSC_VER) && _MSC_VER-0 >= 1600 && _MSC_VER-0 <= 1800 // MSVC complains about math stuff we are not even using (bug #1159) +EXTERN_C int _fltused = 0; +EXTERN_C double _hypot(double x, double y) { return 0.0; } +#endif + #ifndef LOCALE_SNAME #define LOCALE_SNAME 0x005C #endif