From 305ff5131464a958e68812fa330c7a2cde5dc9a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C4=83t=C4=83lin=20R=C4=83ceanu?= Date: Thu, 20 Jul 2017 01:20:25 +0300 Subject: [PATCH] Add check for wxUSE_EXTENDED_RTTI to the xti sample header The sample requires wxUSE_EXTENDED_RTTI to be enabled, and that is correctly signalled in the source files. Just avoid the header flooding the output with errors. Closes https://github.com/wxWidgets/wxWidgets/pull/525 * Removed BOM. --- samples/xti/codereadercallback.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/xti/codereadercallback.h b/samples/xti/codereadercallback.h index 18dbeab209..d6050a8662 100644 --- a/samples/xti/codereadercallback.h +++ b/samples/xti/codereadercallback.h @@ -11,6 +11,8 @@ #ifndef _CODEDEPERSISTER_ #define _CODEDEPERSISTER_ +#if wxUSE_EXTENDED_RTTI + #include "wx/defs.h" #include "wx/sstream.h" @@ -104,4 +106,6 @@ public: wxString ValueAsCode( const wxAny ¶m ); }; +#endif // wxUSE_EXTENDED_RTTI + #endif