X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c3ebca927cea2742ec128c9c3ef3676d1ecae01..97e4cf6da52b74dc58c59e780463c614054ec0a2:/include/wx/variant.h diff --git a/include/wx/variant.h b/include/wx/variant.h index eda1afbb89..ef70b0e3ae 100644 --- a/include/wx/variant.h +++ b/include/wx/variant.h @@ -12,7 +12,7 @@ #ifndef _WX_VARIANT_H_ #define _WX_VARIANT_H_ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "variant.h" #endif @@ -282,7 +282,7 @@ protected: //a dynamic_cast /wxDynamicCast analogue. #define wxGetVariantCast(var,classname) \ - ((classname*)(var.IsValueKindOf(&classname::sm_class##classname) ?\ + ((classname*)(var.IsValueKindOf(&classname::ms_classInfo) ?\ var.GetWxObjectPtr() : NULL)); extern wxVariant WXDLLIMPEXP_BASE wxNullVariant;