From b1541c1d973c90b25a4534f1ad9a0a14da3e90c2 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Thu, 1 Dec 2022 17:01:11 -0500 Subject: 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 --- binaryninjacore.h | 12 ++++++------ 1 file 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 -- cgit v1.3.1