Fix default/debug build with Bazel on OSX
#include <stdbool.h>
#include <stdlib.h>
+#ifdef _HF_ARCH_DARWIN
+#pragma push_macro("DEBUG")
+#undef DEBUG
+#endif
+
enum llevel_t { FATAL = 0, ERROR, WARNING, INFO, DEBUG, HELP, HELP_BOLD };
extern enum llevel_t hf_log_level;
@@ -92,4 +97,8 @@ extern pthread_mutex_t* logMutexGet(void);
void logMutexReset(void);
+#ifdef _HF_ARCH_DARWIN
+#pragma pop_macro("DEBUG")
+#endif
+
#endif /* ifndef _HF_COMMON_LOG_H_ */
