From 0bab610a893c5bf63f693bd6c9549e2368c1804f Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 15 Jun 2019 14:03:26 +0100 Subject: [PATCH] VS2013 noexcept workaround --- include/sass/base.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/sass/base.h b/include/sass/base.h index eee8327bed..a91dbc9537 100644 --- a/include/sass/base.h +++ b/include/sass/base.h @@ -17,6 +17,12 @@ #endif #endif +// Work around lack of `noexcept` keyword support in VS2013 +#if defined(_MSC_VER) && (_MSC_VER <= 1800) && !defined(_ALLOW_KEYWORD_MACROS) +#define _ALLOW_KEYWORD_MACROS 1 +#define noexcept throw( ) +#endif + #include #include