Added dummy CRT stubs for VS 2010-15 (bug #1159)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7032 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2018-10-31 20:07:01 +00:00
parent 945a003cd9
commit 993b491786
2 changed files with 9 additions and 0 deletions

View file

@ -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.

View file

@ -28,6 +28,11 @@ https://wayback.archive.org/web/20021221200122/http://msdn.microsoft.com/library
#include <commctrl.h>
#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