Ignore c++ exception specifications, they are still useful as "documentation"

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6398 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2013-07-27 18:29:36 +00:00
parent ebe96fe79c
commit 7ce021a376
2 changed files with 3 additions and 1 deletions

View file

@ -961,4 +961,6 @@ typedef struct tagVS_FIXEDFILEINFO {
#endif
#define NSIS_CXX_THROWSPEC(ignoredthrowspec) // Ignore c++ exception specifications
#endif

View file

@ -435,7 +435,7 @@ FILE* my_fopen(const TCHAR *path, const char *mode)
}
void *operator new(size_t size) throw(bad_alloc) {
void *operator new(size_t size) NSIS_CXX_THROWSPEC(bad_alloc) {
void *p = malloc(size);
if (!p)
throw bad_alloc();