Browse Source

Merge topic 'deprecation-macro-refactor'

cdf55d5 GEH: Make each element of the deprecation macros overridable.
80d5090 GEH: Use the macro for the deprecation attribute after definiting it.
Brad King 12 years ago
parent
commit
c76b380181
1 changed files with 8 additions and 2 deletions
  1. 8 2
      Modules/exportheader.cmake.in

+ 8 - 2
Modules/exportheader.cmake.in

@@ -23,8 +23,14 @@
 
 #ifndef @DEPRECATED_MACRO_NAME@
 #  define @DEPRECATED_MACRO_NAME@ @DEFINE_DEPRECATED@
-#  define @DEPRECATED_MACRO_NAME@_EXPORT @EXPORT_MACRO_NAME@ @DEFINE_DEPRECATED@
-#  define @DEPRECATED_MACRO_NAME@_NO_EXPORT @NO_EXPORT_MACRO_NAME@ @DEFINE_DEPRECATED@
+#endif
+
+#ifndef @DEPRECATED_MACRO_NAME@_EXPORT
+#  define @DEPRECATED_MACRO_NAME@_EXPORT @EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@
+#endif
+
+#ifndef @DEPRECATED_MACRO_NAME@_NO_EXPORT
+#  define @DEPRECATED_MACRO_NAME@_NO_EXPORT @NO_EXPORT_MACRO_NAME@ @DEPRECATED_MACRO_NAME@
 #endif
 
 #cmakedefine01 DEFINE_NO_DEPRECATED