Skip to content

Commit

Permalink
Fix macro definition for AS_KDEBUG_ENABLE producing warning: “Macro e…
Browse files Browse the repository at this point in the history
…xpansion producing ‘defined’ as undefined behavior” in Xcode 9.3 (#879)
  • Loading branch information
Andrew Rohn authored and maicki committed Apr 11, 2018
1 parent 2a0c6f8 commit 9d58576
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Source/Base/ASSignpost.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ static inline ASSignpostColor ASSignpostGetColor(ASSignpostName name, ASSignpost
}
}

#define AS_KDEBUG_ENABLE defined(PROFILE) && __has_include(<sys/kdebug_signpost.h>)
#if defined(PROFILE) && __has_include(<sys/kdebug_signpost.h>)
#define AS_KDEBUG_ENABLE 1
#else
#define AS_KDEBUG_ENABLE 0
#endif

#if AS_KDEBUG_ENABLE

Expand Down

0 comments on commit 9d58576

Please sign in to comment.