From ea6660721bf420bb7656cd6c0d8aa04230ccc41e Mon Sep 17 00:00:00 2001 From: Mattes D Date: Thu, 22 Jun 2017 21:10:41 +0200 Subject: NetworkSingleton: Fixed a throw warning in VS2017. (#3792) Also fixed the misleading name. --- src/Globals.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Globals.h') diff --git a/src/Globals.h b/src/Globals.h index f7116f8e0..777f8ca3d 100644 --- a/src/Globals.h +++ b/src/Globals.h @@ -52,9 +52,9 @@ #define NORETURN __declspec(noreturn) #if (_MSC_VER < 1910) // MSVC 2013 (and possibly 2015?) have no idea about "noexcept(false)" - #define NO_THROW throw(...) + #define CAN_THROW throw(...) #else - #define NO_THROW noexcept(false) + #define CAN_THROW noexcept(false) #endif // Use non-standard defines in @@ -118,7 +118,7 @@ #endif #define NORETURN __attribute((__noreturn__)) - #define NO_THROW noexcept(false) + #define CAN_THROW noexcept(false) #else -- cgit v1.2.3