fix bad TR_DEPRECATED macro on clang :P

This commit is contained in:
Jordan Lee
2016-03-29 16:01:41 +00:00
parent 8d38442cc1
commit 77b5105ea0

View File

@@ -20,9 +20,7 @@
extern "C" { extern "C" {
#endif #endif
#if defined(__clang__) #if defined(__GNUC__)
#define TR_DEPRECATED __attribute__((gnu::deprecated))
#elif defined(__GNUC__)
#define TR_DEPRECATED __attribute__((deprecated)) #define TR_DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER) #elif defined(_MSC_VER)
#define TR_DEPRECATED __declspec(deprecated) #define TR_DEPRECATED __declspec(deprecated)