summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2022-12-01 17:01:11 -0500
committerGlenn Smith <glenn@vector35.com>2022-12-01 17:01:11 -0500
commitb1541c1d973c90b25a4534f1ad9a0a14da3e90c2 (patch)
tree4b8e0bf5f9e225c8deae0de04f87ae944c1dcc1d
parent1e49bcf11fcb2e42fa2eee94e2cc02dcafb573c9 (diff)
Revert commenting out of this macro
This was the culprit that was breaking the generator for core type parser, but that uses clang and doesn't have the weird race condition where it breaks anymore. Also this comment was a mistake so whoops
-rw-r--r--binaryninjacore.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/binaryninjacore.h b/binaryninjacore.h
index 0849a35d..58d1e44b 100644
--- a/binaryninjacore.h
+++ b/binaryninjacore.h
@@ -150,13 +150,13 @@
#else
#define BN_HAVE_ATTRIBUTE(x) 0
#endif
-//
-//#if BN_HAVE_ATTRIBUTE(format) || (defined(__GNUC__) && !defined(__clang__))
-// #define BN_PRINTF_ATTRIBUTE(string_index, first_to_check) \
-// __attribute__((format(__printf__, string_index, first_to_check)))
-//#else
+
+#if BN_HAVE_ATTRIBUTE(format) || (defined(__GNUC__) && !defined(__clang__))
+ #define BN_PRINTF_ATTRIBUTE(string_index, first_to_check) \
+ __attribute__((format(__printf__, string_index, first_to_check)))
+#else
#define BN_PRINTF_ATTRIBUTE(string_index, first_to_check)
-//#endif
+#endif
#ifdef __cplusplus