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