diff options
author | Asger Hautop Drewsen <asgerdrewsen@gmail.com> | 2018-01-31 19:23:20 (GMT) |
---|---|---|
committer | Asger Hautop Drewsen <asgerdrewsen@gmail.com> | 2018-01-31 19:24:44 (GMT) |
commit | c129f480e777d795f9945bc9ae9dafe01f3772c4 (patch) | |
tree | 93355eb3c248fd4de4fa3e0e4cf579cb4224ce41 /lib/lz4.h | |
parent | 865bd83e13590dc4a4c82f559f454cefcd86fd69 (diff) | |
download | lz4-c129f480e777d795f9945bc9ae9dafe01f3772c4.zip lz4-c129f480e777d795f9945bc9ae9dafe01f3772c4.tar.gz lz4-c129f480e777d795f9945bc9ae9dafe01f3772c4.tar.bz2 |
Always prefer c++14 attributes if available
Diffstat (limited to 'lib/lz4.h')
-rw-r--r-- | lib/lz4.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -433,11 +433,9 @@ union LZ4_streamDecode_u { # define LZ4_DEPRECATED(message) /* disable deprecation warnings */ #else # define LZ4_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) -# if defined(__clang__) /* clang doesn't handle mixed C++11 and CNU attributes */ -# define LZ4_DEPRECATED(message) __attribute__((deprecated(message))) -# elif defined (__cplusplus) && (__cplusplus >= 201402) /* C++14 or greater */ +# if defined (__cplusplus) && (__cplusplus >= 201402) /* C++14 or greater */ # define LZ4_DEPRECATED(message) [[deprecated(message)]] -# elif (LZ4_GCC_VERSION >= 405) +# elif (LZ4_GCC_VERSION >= 405) || defined(__clang__) # define LZ4_DEPRECATED(message) __attribute__((deprecated(message))) # elif (LZ4_GCC_VERSION >= 301) # define LZ4_DEPRECATED(message) __attribute__((deprecated)) |