commit 15c5f2815742a60eb2559d1401ba312f50ddf48e parent 854e3973ea0362b96fc4751703fddbaa43ee1485 Author: Jean Pierre Cimalando <jp-dev@inbox.ru> Date: Mon, 24 May 2021 15:00:32 +0200 Fix detection of C++11 on MS compiler Diffstat:
M | distrho/src/DistrhoDefines.h | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/distrho/src/DistrhoDefines.h b/distrho/src/DistrhoDefines.h @@ -55,7 +55,7 @@ # if HAVE_CPP11_SUPPORT # define DISTRHO_PROPER_CPP11_SUPPORT # endif -#elif __cplusplus >= 201103L || (defined(__GNUC__) && defined(__GXX_EXPERIMENTAL_CXX0X__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 405) || __has_extension(cxx_noexcept) +#elif __cplusplus >= 201103L || (defined(__GNUC__) && defined(__GXX_EXPERIMENTAL_CXX0X__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 405) || __has_extension(cxx_noexcept) || (defined(_MSC_VER) && _MSVC_LANG >= 201103L) # define DISTRHO_PROPER_CPP11_SUPPORT # if (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) < 407 && ! defined(__clang__)) || (defined(__clang__) && ! __has_extension(cxx_override_control)) # define override // gcc4.7+ only