diff --git a/src/utils/Log.h b/src/utils/Log.h index 7db48572..b577ef9f 100644 --- a/src/utils/Log.h +++ b/src/utils/Log.h @@ -24,7 +24,7 @@ namespace tgfx { #define ABORT(msg) \ do { \ - PrintError("%s:%d: fatal error: \"%s\"\n", __FILE__, __LINE__, #msg); \ + ::tgfx::PrintError("%s:%d: fatal error: \"%s\"\n", __FILE__, __LINE__, #msg); \ ::abort(); \ } while (false) @@ -36,8 +36,8 @@ namespace tgfx { #else -#define LOGI(...) PrintLog(__VA_ARGS__) -#define LOGE(...) PrintError(__VA_ARGS__) +#define LOGI(...) ::tgfx::PrintLog(__VA_ARGS__) +#define LOGE(...) ::tgfx::PrintError(__VA_ARGS__) #define ASSERT(assertion) \ if (!(assertion)) { \ ABORT(#assertion); \