Ensure LZ4_DEPRECATED("...") is before LZ4LIB_API
authorAsger Hautop Drewsen <asgerdrewsen@gmail.com>
Wed, 31 Jan 2018 12:33:07 +0000 (13:33 +0100)
committerAsger Hautop Drewsen <asgerdrewsen@gmail.com>
Wed, 31 Jan 2018 12:33:07 +0000 (13:33 +0100)
commit865bd83e13590dc4a4c82f559f454cefcd86fd69
tree88f11432eb621741594f1007eaef84a21f98b090
parent8258f4d9cba4c163f0c63a60a79d14d8aef90c4e
Ensure LZ4_DEPRECATED("...") is before LZ4LIB_API

When using clang++ with std c++14 or c++17 you would get the error "an attribute list cannot appear here" when including "lz4.h" as the visibility attribute is before the c++ attribute.
This ensures that the [[deprecated]] c++ attribute is before everything
else in the function declarations.
lib/lz4.h
lib/lz4hc.h