diff --git a/Source/Platform.h b/Source/Platform.h index d2cba272..e1d7eebb 100644 --- a/Source/Platform.h +++ b/Source/Platform.h @@ -961,4 +961,6 @@ typedef struct tagVS_FIXEDFILEINFO { #endif +#define NSIS_CXX_THROWSPEC(ignoredthrowspec) // Ignore c++ exception specifications + #endif diff --git a/Source/util.cpp b/Source/util.cpp index 959a1391..b22b5f92 100644 --- a/Source/util.cpp +++ b/Source/util.cpp @@ -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();