]> git.saurik.com Git - wxWidgets.git/commitdiff
The exact version it was included doesn't appear to be documented
authorRon Lee <ron@debian.org>
Fri, 3 Jan 2003 20:52:10 +0000 (20:52 +0000)
committerRon Lee <ron@debian.org>
Fri, 3 Jan 2003 20:52:10 +0000 (20:52 +0000)
anywhere, but __attribute__ ((deprecated)) is empirically not
supported by gcc-2.95.4.  Best guess so far is 3.0 or 3.1 so I've
erred on the side of the former for now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h

index 889f1d6482668e4e747dce49ba717149a48f5e2f..d86fbe57bb2674c570bf93333bb200ca4dff19c6 100644 (file)
@@ -391,8 +391,8 @@ class WXDLLEXPORT wxEvent;
 #  endif /* ATTRIBUTE_PRINTF */
 #endif
 
-// Macro to issue warning when using deprecated functions with gcc or MSVC7:
-#if defined(__GNUC__)
+// Macro to issue warning when using deprecated functions with gcc3 or MSVC7:
+#if wxCHECK_GCC_VERSION(3, 0)
     #define wxDEPRECATED(x) x __attribute__ ((deprecated))
 #elif defined(__VISUALC__) && (__VISUALC__ >= 1300)
     #define wxDEPRECATED(x) __declspec(deprecated) x