Browse Source

Issue #370: work around Clang-on-windows oddities by rearranging ifdefs.

tags/json-c-0.13-20171207
Eric Haszlakiewicz 8 years ago
parent
commit
ac09581cc2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      json_object.h

+ 2
- 2
json_object.h View File

@@ -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


Loading…
Cancel
Save