Need to check availability before use of macros. (#3254)

* Need to check availability before use of macros.

* Get rid of PCH and enforce macro definition.

* Remove prefix

* Switch to global warning instead, much better.
This commit is contained in:
Garrett Moon
2017-04-10 15:06:40 -07:00
committed by GitHub
parent 68a8d5f468
commit 8c3775f5e2
26 changed files with 62 additions and 41 deletions

View File

@@ -18,7 +18,7 @@
#define ASMultiplexImageNodeCLogError(...)
// Note: `<sys/kdebug_signpost.h>` only exists in Xcode 8 and later.
#if PROFILE && __has_include("<sys/kdebug_signpost.h>")
#if defined(PROFILE) && __has_include("<sys/kdebug_signpost.h>")
#import <sys/kdebug_signpost.h>