]> git.saurik.com Git - wxWidgets.git/commitdiff
deprecated XMLID and friends macros
authorVáclav Slavík <vslavik@fastmail.fm>
Mon, 7 Apr 2003 22:15:03 +0000 (22:15 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Mon, 7 Apr 2003 22:15:03 +0000 (22:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

contrib/include/wx/xrc/xmlres.h
include/wx/xrc/xmlres.h

index 7da09a94a569988a0506c3c5581503d40acbd687..7500a893b01c4086a6e832231738d928d4ed567f 100644 (file)
@@ -472,11 +472,13 @@ public:
    Backward compatibility macros. Do *NOT* use, they may disappear in future
    versions of the XRC library!
    ------------------------------------------------------------------------- */
-#define ADD_STYLE         XRC_ADD_STYLE
-#define wxTheXmlResource  wxXmlResource::Get()
-#define XMLID             XRCID
-#define XMLCTRL           XRCCTRL
-#define GetXMLID          GetXRCID
+#if WXWIN_COMPATIBILITY_2_4
+    #define ADD_STYLE         XRC_ADD_STYLE
+    #define wxTheXmlResource  wxXmlResource::Get()
+    #define XMLID             XRCID
+    #define XMLCTRL           XRCCTRL
+    #define GetXMLID          GetXRCID
+#endif
 
 
 #endif // _WX_XMLRES_H_
index 7da09a94a569988a0506c3c5581503d40acbd687..7500a893b01c4086a6e832231738d928d4ed567f 100644 (file)
@@ -472,11 +472,13 @@ public:
    Backward compatibility macros. Do *NOT* use, they may disappear in future
    versions of the XRC library!
    ------------------------------------------------------------------------- */
-#define ADD_STYLE         XRC_ADD_STYLE
-#define wxTheXmlResource  wxXmlResource::Get()
-#define XMLID             XRCID
-#define XMLCTRL           XRCCTRL
-#define GetXMLID          GetXRCID
+#if WXWIN_COMPATIBILITY_2_4
+    #define ADD_STYLE         XRC_ADD_STYLE
+    #define wxTheXmlResource  wxXmlResource::Get()
+    #define XMLID             XRCID
+    #define XMLCTRL           XRCCTRL
+    #define GetXMLID          GetXRCID
+#endif
 
 
 #endif // _WX_XMLRES_H_