summaryrefslogtreecommitdiffstats
path: root/src/Globals.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Globals.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Globals.h b/src/Globals.h
index 854ddcc62..4c0d37b81 100644
--- a/src/Globals.h
+++ b/src/Globals.h
@@ -46,10 +46,11 @@
#define SIZE_T_FMT_HEX "%Ix"
#define NORETURN __declspec(noreturn)
- #if (_MSC_VER < 1910)
- // MSVC 2013 (and possibly 2015?) have no idea about "noexcept(false)"
+ #if (_MSC_VER < 1900) // noexcept support was added in VS 2015
+ #define NOEXCEPT throw()
#define CAN_THROW throw(...)
#else
+ #define NOEXCEPT noexcept
#define CAN_THROW noexcept(false)
#endif
@@ -108,6 +109,7 @@
#endif
#define NORETURN __attribute((__noreturn__))
+ #define NOEXCEPT noexcept
#define CAN_THROW noexcept(false)
#else