]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/variant.h
Added wxToggleButton handler
[wxWidgets.git] / include / wx / variant.h
index 7c1b224c80405454631326c08d68e8a7af2064b5..ef70b0e3ae5103a2016403fdb90c1d40be375d4b 100644 (file)
 #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
 
 #include "wx/defs.h"
 #include "wx/object.h"
 #include "wx/string.h"
+#include "wx/arrstr.h"
 #include "wx/list.h"
 
 #if wxUSE_DATETIME
@@ -45,7 +46,7 @@
  * overloading wxVariant with unnecessary functionality.
  */
 
-class WXDLLEXPORT wxVariantData: public wxObject
+class WXDLLIMPEXP_BASE wxVariantData: public wxObject
 {
 DECLARE_ABSTRACT_CLASS(wxVariantData)
 public:
@@ -79,7 +80,7 @@ public:
  * this class too much.
  */
 
-class WXDLLEXPORT wxVariant: public wxObject
+class WXDLLIMPEXP_BASE wxVariant: public wxObject
 {
 DECLARE_DYNAMIC_CLASS(wxVariant)
 public:
@@ -281,10 +282,10 @@ 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 WXDLLEXPORT wxNullVariant;
+extern wxVariant WXDLLIMPEXP_BASE wxNullVariant;
 
 #endif
     // _WX_VARIANT_H_