diff --git a/src/rcore.h b/src/rcore.h index 7fb35915ae46..4d40c9567fe1 100644 --- a/src/rcore.h +++ b/src/rcore.h @@ -37,12 +37,12 @@ #include "raylib.h" -#include "rlgl.h" +#include "utils.h" // Required for: TRACELOG() macros -#define RAYMATH_IMPLEMENTATION -#include "raymath.h" +#include "rlgl.h" // Required for: graphics layer functionality -#include "utils.h" // Required for: TRACELOG() macros +#define RAYMATH_IMPLEMENTATION +#include "raymath.h" // Required for: Vector2/Vector3/Matrix functionality #include // Required for: srand(), rand(), atexit() #include // Required for: sprintf() [Used in OpenURL()] diff --git a/src/utils.h b/src/utils.h index 6ec0f7f1b8de..ff8246a7b68a 100644 --- a/src/utils.h +++ b/src/utils.h @@ -32,7 +32,7 @@ #include // Required for: AAssetManager #endif -#if defined(SUPPORT_TRACELOG) && !defined(TRACELOG) +#if defined(SUPPORT_TRACELOG) #define TRACELOG(level, ...) TraceLog(level, __VA_ARGS__) #if defined(SUPPORT_TRACELOG_DEBUG)