Skip to content

Commit

Permalink
Fix C++ standard detection logic for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
apolukhin committed May 3, 2020
1 parent 0b93b5e commit abd36a0
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/boost/dll/import_class.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <boost/dll/import_mangled.hpp>
#include <memory>

#if (__cplusplus < 201103L) || (defined(_MSVC_LANG) && _MSVC_LANG < 201103L)
#if (__cplusplus < 201103L) && (!defined(_MSVC_LANG) || _MSVC_LANG < 201103L)
# error This file requires C++11 at least!
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/boost/dll/import_mangled.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
/// \brief Contains the boost::dll::experimental::import_mangled function for importing mangled symbols.

#include <boost/dll/config.hpp>
#if (__cplusplus < 201103L) || (defined(_MSVC_LANG) && _MSVC_LANG < 201103L)
#if (__cplusplus < 201103L) && (!defined(_MSVC_LANG) || _MSVC_LANG < 201103L)
# error This file requires C++11 at least!
#endif

Expand Down
2 changes: 1 addition & 1 deletion include/boost/dll/smart_library.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# include <boost/dll/detail/demangling/itanium.hpp>
#endif

#if (__cplusplus < 201103L) || (defined(_MSVC_LANG) && _MSVC_LANG < 201103L)
#if (__cplusplus < 201103L) && (!defined(_MSVC_LANG) || _MSVC_LANG < 201103L)
# error This file requires C++11 at least!
#endif

Expand Down
1 change: 1 addition & 0 deletions test/cpp_load_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

// For more information, see http://www.boost.org

#include <boost/config.hpp>
#include <boost/predef.h>

#if (__cplusplus >= 201103L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201103L)
Expand Down
2 changes: 1 addition & 1 deletion test/cpp_mangle_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

// For more information, see http://www.boost.org

#include <boost/predef.h>
#include <boost/config.hpp>

#if (__cplusplus >= 201402L) || (defined(_MSVC_LANG) && _MSVC_LANG >= 201402L)

Expand Down

0 comments on commit abd36a0

Please sign in to comment.