mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Merge branch 'develop' of https://github.com/boostorg/config into develop
This commit is contained in:
@ -399,7 +399,7 @@ containing header should be included only once while preprocessing the
|
||||
current translation unit. The pragma may improve compile times of large projects
|
||||
with some compilers.
|
||||
]]
|
||||
[[`BOOST_HAS_PRAGMA_DETECT_MISSMATCH`][Compiler][
|
||||
[[`BOOST_HAS_PRAGMA_DETECT_MISMATCH`][Compiler][
|
||||
The compiler recognizes the `#pragma detect_mismatch("name", "value")` directive which tells that the
|
||||
link stage should be terminated with error if values for provided `"name"` missmatch.
|
||||
This pragma may be a help in preventing ODR violations and ensuring that different modules
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
// Detecting `-fms-extension` compiler flag assuming that _MSC_VER defined when that flag is used.
|
||||
#if defined (_MSC_VER) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 4))
|
||||
# define BOOST_HAS_PRAGMA_DETECT_MISSMATCH
|
||||
# define BOOST_HAS_PRAGMA_DETECT_MISMATCH
|
||||
#endif
|
||||
|
||||
// When compiling with clang before __has_extension was defined,
|
||||
|
@ -105,7 +105,7 @@
|
||||
# define BOOST_HAS_NRVO
|
||||
#endif
|
||||
#if _MSC_VER >= 1500 // 150X == VC++ 9.0
|
||||
# define BOOST_HAS_PRAGMA_DETECT_MISSMATCH
|
||||
# define BOOST_HAS_PRAGMA_DETECT_MISMATCH
|
||||
#endif
|
||||
//
|
||||
// disable Win32 API's if compiler extensions are
|
||||
|
Reference in New Issue
Block a user