added wxDEPRECATED

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2003-01-02 22:52:47 +00:00
parent b254d1fe03
commit c75274f93c

View 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"