From bf5269dfdd94d63d72eb7725f1d3ea3d270d034d Mon Sep 17 00:00:00 2001 From: "Friedrich W. H. Kossebau" Date: Fri, 7 May 2021 04:07:29 +0200 Subject: Order macro for attribute for symbol export before that for deprecated The symbol export/visibility attribute is not standardized so far and needs to be set by language extension attribute declaration at least with clang & MSVC, who both support that when it appears before the standard attribute declaration. NO_CHANGELOG --- tests/ECMGenerateExportHeaderTest/library/library.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/ECMGenerateExportHeaderTest/library/library.hpp') diff --git a/tests/ECMGenerateExportHeaderTest/library/library.hpp b/tests/ECMGenerateExportHeaderTest/library/library.hpp index 4afe87ac..4b9fc66a 100644 --- a/tests/ECMGenerateExportHeaderTest/library/library.hpp +++ b/tests/ECMGenerateExportHeaderTest/library/library.hpp @@ -11,13 +11,15 @@ enum Enum { }; #if LIBRARY_ENABLE_DEPRECATED_SINCE(2, 0) +LIBRARY_EXPORT LIBRARY_DEPRECATED_VERSION(2, 0, "Deprecated at 2.0") -LIBRARY_EXPORT void function_deprecatedAt2_0(); +void function_deprecatedAt2_0(); #endif #if LIBRARY_ENABLE_DEPRECATED_SINCE(2, 12) +LIBRARY_EXPORT LIBRARY_DEPRECATED_VERSION(2, 12, "Deprecated at 2.12") -LIBRARY_EXPORT void function_deprecatedAt2_12(); +void function_deprecatedAt2_12(); #endif LIBRARY_EXPORT void function_not_deprecated(); -- cgit v1.2.1