diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2025-01-07 10:12:32 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2025-01-07 10:12:32 +0200 |
commit | 6b83f2f2061310729a22637c7bffec7d1c248304 (patch) | |
tree | 151634542f1301a7b718135fb33c62898db70e0e | |
parent | b21bb358e87405e64d8bc99cefdfc72ca3e91993 (diff) |
Fix MSVC compatibility issue in config.hxx
-rw-r--r-- | libstudxml/details/config.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libstudxml/details/config.hxx b/libstudxml/details/config.hxx index 437c275..596e969 100644 --- a/libstudxml/details/config.hxx +++ b/libstudxml/details/config.hxx @@ -4,8 +4,13 @@ #ifndef LIBSTUDXML_DETAILS_CONFIG_HXX #define LIBSTUDXML_DETAILS_CONFIG_HXX +// Note that MSVC 14.3 (1930) does not define suitable __cplusplus but +// supports C++11. +// #if !defined(__cplusplus) || __cplusplus < 201103L -# error C++11 is required +# if !defined(_MSC_VER) || _MSC_VER < 1930 +# error C++11 is required +# endif #endif #ifdef _MSC_VER |