Skip to content

Commit

Permalink
Issue #370: work around Clang-on-windows oddities by rearranging ifdefs.
Browse files Browse the repository at this point in the history
  • Loading branch information
hawicz committed Oct 23, 2017
1 parent c9c84ca commit ac09581
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions json_object.h
Expand Up @@ -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
Expand Down

0 comments on commit ac09581

Please sign in to comment.