Fix build on centos7 gcc4.8 (#2492)

This commit is contained in:
Yuhao Bi 2020-12-02 05:17:09 +08:00 committed by GitHub
parent f9bde4a2ff
commit b07bffc5fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,9 +62,12 @@ inline QString RHexString(RVA size)
#endif #endif
#if defined(__has_cpp_attribute) && __has_cpp_attribute(deprecated) #if defined(__has_cpp_attribute)
#define CUTTER_DEPRECATED(msg) [[deprecated(msg)]] #if __has_cpp_attribute(deprecated)
#else #define CUTTER_DEPRECATED(msg) [[deprecated(msg)]]
#endif
#endif
#if !defined(CUTTER_DEPRECATED)
#define CUTTER_DEPRECATED(msg) #define CUTTER_DEPRECATED(msg)
#endif #endif