From: Václav Slavík Date: Thu, 2 Jan 2003 22:52:47 +0000 (+0000) Subject: added wxDEPRECATED X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c75274f93cd2d34607de475adacd6acacf8bb80f?ds=inline added wxDEPRECATED git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/defs.h b/include/wx/defs.h index 3ee16b9c2f..889f1d6482 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -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"