From 7a9faeb2a5897d985aef1847af50ba941f011041 Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 24 Feb 2007 12:16:32 +0000 Subject: [PATCH] fixed bug #1667637 - build, test failures in nsis CVS on Debian GNU/Linux git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4956 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/Math/Source/Math.c | 6 ++++++ Source/Tests/decompress.cpp | 2 ++ 2 files changed, 8 insertions(+) diff --git a/Contrib/Math/Source/Math.c b/Contrib/Math/Source/Math.c index 9dbc0e13..0f4fa346 100644 --- a/Contrib/Math/Source/Math.c +++ b/Contrib/Math/Source/Math.c @@ -3,6 +3,11 @@ #include "Math.h" extern "C" int _fltused; + +#ifdef __MINGW32__ +int _fltused = 1; +#endif + ExpressionItem *stack; int UserVarsCount, UserFuncsCount; @@ -1503,6 +1508,7 @@ void __declspec(dllexport) Script(HWND hwndParent, int string_size, } double _infinity; +extern "C" void _fpreset(); void CleanAll(int init) { diff --git a/Source/Tests/decompress.cpp b/Source/Tests/decompress.cpp index 7f390fab..45c570ba 100644 --- a/Source/Tests/decompress.cpp +++ b/Source/Tests/decompress.cpp @@ -1,5 +1,7 @@ #include "decompress.h" +#include // for memset + #define EXEHEAD #define NSIS_CONFIG_COMPRESSION_SUPPORT