From c3ed0050d20d3474024d417a11ac77b4578bfb07 Mon Sep 17 00:00:00 2001 From: Branimir Karadzic Date: Tue, 21 Oct 2014 23:00:23 -0700 Subject: [PATCH] Fixed compile error. --- src/bgfx_p.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 71dbf75b..31f93c24 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -10,7 +10,7 @@ # define BGFX_CONFIG_DEBUG 0 #endif // BGFX_CONFIG_DEBUG -#if BGFX_CONFIG_DEBUG || BX_COMPILER_CLANG_ANALYZER +#if BGFX_CONFIG_DEBUG || defined(__clang_analyzer__) # define BX_TRACE _BX_TRACE # define BX_WARN _BX_WARN # define BX_CHECK _BX_CHECK @@ -29,11 +29,11 @@ namespace bgfx { -#if BX_COMPILER_CLANG_ANALYZER +#if defined(__clang_analyzer__) void __attribute__((analyzer_noreturn)) fatal(Fatal::Enum _code, const char* _format, ...); #else void fatal(Fatal::Enum _code, const char* _format, ...); -#endif // BX_COMPILER_CLANG_ANALYZER +#endif // defined(__clang_analyzer__) void dbgPrintf(const char* _format, ...); }