feat: add macro D_DECL_DEPRECATED
authorzccrs <ccrr1314@live.com>
Fri, 17 Nov 2017 04:38:26 +0000 (12:38 +0800)
committerzccrs <ccrr1314@live.com>
Fri, 17 Nov 2017 04:38:26 +0000 (12:38 +0800)
Change-Id: Ia586f89c49a3f93a731db6b9e122a3dcd70942d7

src/dtkcore_global.h

index ecb3ec47f3b7f3b560453e6188db9d475dec7885..34ec344eb9e79647c5c63e64d3a1e32644a8e8ce 100644 (file)
 #  define LIBDTKCORESHARED_EXPORT Q_DECL_IMPORT
 #endif
 #endif
+
+#ifdef D_DEPRECATED_CHECK
+#define D_DECL_DEPRECATED_X(text) Q_DECL_HIDDEN
+#define D_DECL_DEPRECATED Q_DECL_HIDDEN
+#else
+#define D_DECL_DEPRECATED Q_DECL_DEPRECATED
+#define D_DECL_DEPRECATED_X Q_DECL_DEPRECATED_X
+#endif