summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libunwind/src/config.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/libunwind/src/config.h b/libunwind/src/config.h
index b14e591ba42..69f5cc1df0a 100644
--- a/libunwind/src/config.h
+++ b/libunwind/src/config.h
@@ -86,11 +86,14 @@
#endif
#endif
-#define _LIBUNWIND_BUILD_ZERO_COST_APIS \
- (defined(__i386__) || defined(__x86_64__) || \
- (!defined(__APPLE__) && defined(__arm__)) || \
- (defined(__arm64__) || defined(__aarch64__)) || \
- (defined(__APPLE__) && defined(__mips__)))
+#if defined(__i386__) || defined(__x86_64__) || \
+ (!defined(__APPLE__) && defined(__arm__)) || \
+ (defined(__arm64__) || defined(__aarch64__)) || \
+ (defined(__APPLE__) && defined(__mips__))
+#define _LIBUNWIND_BUILD_ZERO_COST_APIS 1
+#else
+#define _LIBUNWIND_BUILD_ZERO_COST_APIS 0
+#endif
// Macros that define away in non-Debug builds
#ifdef NDEBUG
OpenPOWER on IntegriCloud