projects
/
dtkcore.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e61570
)
feat: add macro D_DECL_DEPRECATED
author
zccrs
<ccrr1314@live.com>
Fri, 17 Nov 2017 04:38:26 +0000
(12:38 +0800)
committer
zccrs
<ccrr1314@live.com>
Fri, 17 Nov 2017 04:38:26 +0000
(12:38 +0800)
Change-Id: Ia586f89c49a3f93a731db6b9e122a3dcd70942d7
src/dtkcore_global.h
patch
|
blob
|
history
diff --git
a/src/dtkcore_global.h
b/src/dtkcore_global.h
index ecb3ec47f3b7f3b560453e6188db9d475dec7885..34ec344eb9e79647c5c63e64d3a1e32644a8e8ce 100644
(file)
--- a/
src/dtkcore_global.h
+++ b/
src/dtkcore_global.h
@@
-54,3
+54,11
@@
# 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