added wxDEPRECATED
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b254d1fe03
commit
c75274f93c
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user