mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
Fix clang's config:
* `typeid` is useless when `-fno-rtti` is turned on. * Protect `BOOST_NO_RTTI` and `BOOST_NO_TYPEID` from redefinition, as done for `BOOST_NO_EXCEPTIONS`. [SVN r78510]
This commit is contained in:
@ -12,10 +12,14 @@
|
||||
# define BOOST_NO_EXCEPTIONS
|
||||
#endif
|
||||
|
||||
#if !__has_feature(cxx_rtti)
|
||||
#if !__has_feature(cxx_rtti) && !defined(BOOST_NO_RTTI)
|
||||
# define BOOST_NO_RTTI
|
||||
#endif
|
||||
|
||||
#if !__has_feature(cxx_rtti) && !defined(BOOST_NO_TYPEID)
|
||||
# define BOOST_NO_TYPEID
|
||||
#endif
|
||||
|
||||
#if defined(__int64)
|
||||
# define BOOST_HAS_MS_INT64
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user