diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-08-02 14:18:22 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-08-05 15:10:39 +0200 |
commit | 1e0feb5cf916fada5dc2db66a358649624ece578 (patch) | |
tree | fb30b714baaafc5671862a1311b3d26a3961a5bc /include/sal | |
parent | 00657c3b1ed5843d15dbc3aea8fa57be056b0935 (diff) |
do not base feature checks on gcc version
Clang reports itself to be gcc4.2, so there fail there, instead use configure
checks.
Change-Id: Idb44a5c875b24a15546a6495de02a1b4af898443
Diffstat (limited to 'include/sal')
-rw-r--r-- | include/sal/types.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sal/types.h b/include/sal/types.h index 9ce2cef8aa19..145d47e20d82 100644 --- a/include/sal/types.h +++ b/include/sal/types.h @@ -469,7 +469,7 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) { SAL_DEPRECATED("Dont use, its evil.") void doit(int nPara); */ -#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5)) +#if HAVE_GCC_DEPRECATED_MESSAGE # define SAL_DEPRECATED(message) __attribute__((deprecated(message))) #elif (__GNUC__) # define SAL_DEPRECATED(message) __attribute__((deprecated)) @@ -501,7 +501,7 @@ template< typename T1, typename T2 > inline T1 static_int_cast(T2 n) { SAL_WNODEPRECATED_DECLARATIONS_POP */ -#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) || defined(__clang__) +#if HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY && HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE && HAVE_GCC_PRAGMA_OPERATOR #define SAL_WNODEPRECATED_DECLARATIONS_PUSH \ _Pragma(SAL_STRINGIFY_ARG(GCC diagnostic push)) \ _Pragma(SAL_STRINGIFY_ARG(GCC diagnostic ignored "-Wdeprecated-declarations")) |