From b695f22b121e69f77c9ce23e67368a6f5517f132 Mon Sep 17 00:00:00 2001 From: Chun-wei Fan Date: Wed, 2 Sep 2015 12:56:06 +0800 Subject: sigc++config.h.in: Allow Build for MSVC 2013 MSVC 2013 does not have the C++-11 noexcept, so we need to define that to _NOEXCEPT for MSVC 2013. Plus, since by default MSVC 2013 does not allow us to re-define keywords, though they may or may not be supported, we need to use the _ALLOW_KEYWORD_MACROS macro to allow this to happen. https://bugzilla.gnome.org/show_bug.cgi?id=754082 --- sigc++config.h.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sigc++config.h.in b/sigc++config.h.in index 087370c..3311216 100644 --- a/sigc++config.h.in +++ b/sigc++config.h.in @@ -48,6 +48,11 @@ # define SIGC_NEW_DELETE_IN_LIBRARY_ONLY 1 /* To keep ABI compatibility */ # define SIGC_HAVE_NAMESPACE_STD 1 +#if (_MSC_VER < 1900) && !defined (noexcept) +#define _ALLOW_KEYWORD_MACROS 1 +#define noexcept _NOEXCEPT +#endif + #else /* SIGC_MSC */ /* does the C++ compiler support the use of a particular specialization when -- cgit v1.2.1