X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f41d5991df3be094fbedc5eb8fd51c87dc0a8aaa..d642db66a5efc82d374b813022c72ba88bc50839:/include/wx/variant.h diff --git a/include/wx/variant.h b/include/wx/variant.h index 4792253629..318a483144 100644 --- a/include/wx/variant.h +++ b/include/wx/variant.h @@ -570,7 +570,11 @@ bool classname##VariantData::Eq(wxVariantData& data) const \ var.GetWxObjectPtr() : NULL)); // Replacement for using wxDynamicCast on a wxVariantData object -#define wxDynamicCastVariantData(data, classname) dynamic_cast(data) +#ifndef wxNO_RTTI + #define wxDynamicCastVariantData(data, classname) dynamic_cast(data) +#endif + +#define wxStaticCastVariantData(data, classname) static_cast(data) extern wxVariant WXDLLIMPEXP_BASE wxNullVariant;