File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 125125/* * rtti enabled */
126126#ifndef CLI11_HAS_RTTI
127127#if defined(__GXX_RTTI) && __GXX_RTTI == 1
128+ // gcc
128129#define CLI11_HAS_RTTI 1
129130#elif defined(_CPPRTTI) && _CPPRTTI == 1
131+ // msvc
130132#define CLI11_HAS_RTTI 1
131133#elif defined(__NO_RTTI__) && __NO_RTTI__ == 1
134+ // intel
132135#define CLI11_HAS_RTTI 0
133136#elif defined(__has_feature)
137+ // clang and other newer compilers
134138#if __has_feature(cxx_rtti)
135139#define CLI11_HAS_RTTI 1
136140#else
137141#define CLI11_HAS_RTTI 0
138142#endif
139143#elif defined(__RTTI) || defined(__INTEL_RTTI__)
144+ // more intel and some other compilers
140145#define CLI11_HAS_RTTI 1
141146#else
142- // we currently assumed it was on so leave it that way
143- #define CLI11_HAAS_RTTI 1
147+ #define CLI11_HAAS_RTTI 0
144148#endif
145149#endif
146150
You can’t perform that action at this time.
0 commit comments