]> git.saurik.com Git - wxWidgets.git/commitdiff
added wxDEPRECATED
authorVáclav Slavík <vslavik@fastmail.fm>
Thu, 2 Jan 2003 22:52:47 +0000 (22:52 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Thu, 2 Jan 2003 22:52:47 +0000 (22:52 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h

index 3ee16b9c2fc69ba47be9780126f4054d6910c773..889f1d6482668e4e747dce49ba717149a48f5e2f 100644 (file)
@@ -391,6 +391,15 @@ class WXDLLEXPORT wxEvent;
 #  endif /* ATTRIBUTE_PRINTF */
 #endif
 
+// Macro to issue warning when using deprecated functions with gcc or MSVC7:
+#if defined(__GNUC__)
+    #define wxDEPRECATED(x) x __attribute__ ((deprecated))
+#elif defined(__VISUALC__) && (__VISUALC__ >= 1300)
+    #define wxDEPRECATED(x) __declspec(deprecated) x
+#else
+    #define wxDEPRECATED(x) x
+#endif
+
 // everybody gets the assert and other debug macros
 #ifdef __cplusplus
 #include "wx/debug.h"