X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f41d5991df3be094fbedc5eb8fd51c87dc0a8aaa..ab67e8874db324fab5223cc8d5dff8a8de3e2b77:/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;