diff --git a/DuiLib/Core/UIDefine.h b/DuiLib/Core/UIDefine.h index 59178756..d770dc8f 100644 --- a/DuiLib/Core/UIDefine.h +++ b/DuiLib/Core/UIDefine.h @@ -217,6 +217,18 @@ protected: \ { DUI_MSGTYPE_TIMER, _T(""), DuiSig_vn,(DUI_PMSG)&OnTimer }, \ +// Mark method as deprecated. +// example: DUI_DEPRECATED void func(); +#if defined(_MSC_VER) +# define DUI_DEPRECATED __declspec(deprecated) +#elif defined(__GNUC__) +# define DUI_DEPRECATED __attribute__ ((deprecated)) +#else +# pragma message("WARNING: You need to implement DUI_DEPRECATED for this compiler") +# define DUI_DEPRECATED +#endif + + /// //////////////ENDÏûÏ¢Ó³Éäºê¶¨Òå////////////////////////////////////////////////////