From c75274f93cd2d34607de475adacd6acacf8bb80f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Thu, 2 Jan 2003 22:52:47 +0000 Subject: [PATCH] added wxDEPRECATED git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/defs.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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"