mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-27 06:35:37 +00:00
Don't always enable typeid usage under msvc (#3821)
This commit is contained in:
parent
11ba1270ab
commit
06fc25f266
@ -54,8 +54,8 @@
|
|||||||
|
|
||||||
// Check if typeid is available.
|
// Check if typeid is available.
|
||||||
#ifndef FMT_USE_TYPEID
|
#ifndef FMT_USE_TYPEID
|
||||||
// __RTTI is for EDG compilers. In MSVC typeid is available without RTTI.
|
// __RTTI is for EDG compilers. _CPPRTTI is for MSVC.
|
||||||
# if defined(__GXX_RTTI) || FMT_HAS_FEATURE(cxx_rtti) || FMT_MSC_VERSION || \
|
# if defined(__GXX_RTTI) || FMT_HAS_FEATURE(cxx_rtti) || defined(_CPPRTTI) || \
|
||||||
defined(__INTEL_RTTI__) || defined(__RTTI)
|
defined(__INTEL_RTTI__) || defined(__RTTI)
|
||||||
# define FMT_USE_TYPEID 1
|
# define FMT_USE_TYPEID 1
|
||||||
# else
|
# else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user