Detect wxNO_RTTI automatically for clang too

This has been already done for gcc and MSVC, add clang-specific check as
well.
This commit is contained in:
Vadim Zeitlin 2019-03-19 02:10:53 +01:00
parent 1cdc0acfbe
commit 6e949961ef

View File

@ -611,7 +611,11 @@
Only 4.3 defines __GXX_RTTI by default so its absence is not an
indication of disabled RTTI with the previous versions.
*/
# if wxCHECK_GCC_VERSION(4, 3)
# if defined(__clang__)
# if !__has_feature(cxx_rtti)
# define wxNO_RTTI
# endif
# elif wxCHECK_GCC_VERSION(4, 3)
# ifndef __GXX_RTTI
# define wxNO_RTTI
# endif