]> granicus.if.org Git - json-c/commitdiff
Issue #370: work around Clang-on-windows oddities by rearranging ifdefs.
authorEric Haszlakiewicz <erh+git@nimenees.com>
Mon, 23 Oct 2017 02:19:41 +0000 (22:19 -0400)
committerEric Haszlakiewicz <erh+git@nimenees.com>
Mon, 23 Oct 2017 02:19:41 +0000 (22:19 -0400)
json_object.h

index 7399be8604e7e4d1539761bf7e50034c297bf39b..d1717de96dc83baca1e25829957a3df3a986c56d 100644 (file)
 
 #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