From 6e949961efede83e430761ae214f500eb8ee3f6f Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 19 Mar 2019 02:10:53 +0100 Subject: [PATCH] Detect wxNO_RTTI automatically for clang too This has been already done for gcc and MSVC, add clang-specific check as well. --- include/wx/platform.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/wx/platform.h b/include/wx/platform.h index 45bb9cc3aa..47c1c4778c 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -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