From ac09581cc277f0a437f4fb9e957257e334945f89 Mon Sep 17 00:00:00 2001 From: Eric Haszlakiewicz Date: Sun, 22 Oct 2017 22:19:41 -0400 Subject: [PATCH] Issue #370: work around Clang-on-windows oddities by rearranging ifdefs. --- json_object.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json_object.h b/json_object.h index 7399be8..d1717de 100644 --- a/json_object.h +++ b/json_object.h @@ -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