mirror of
https://github.com/json-c/json-c.git
synced 2026-03-20 13:39:06 +08:00
Issue #370: work around Clang-on-windows oddities by rearranging ifdefs.
This commit is contained in:
@@ -15,10 +15,10 @@
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define THIS_FUNCTION_IS_DEPRECATED(func) func __attribute__ ((deprecated))
|
||||
#elif defined(__clang__)
|
||||
#define THIS_FUNCTION_IS_DEPRECATED(func) func __deprecated
|
||||
#elif defined(_MSC_VER)
|
||||
#define THIS_FUNCTION_IS_DEPRECATED(func) __declspec(deprecated) func
|
||||
#elif defined(__clang__)
|
||||
#define THIS_FUNCTION_IS_DEPRECATED(func) func __deprecated
|
||||
#else
|
||||
#define THIS_FUNCTION_IS_DEPRECATED(func) func
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user