From 5d98930da52c5b7029180287c242e9721815ceaa Mon Sep 17 00:00:00 2001 From: ubkp <118854183+ubkp@users.noreply.github.com> Date: Wed, 20 Sep 2023 07:38:36 -0300 Subject: [PATCH] Fix compilation for web --- src/rcore.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rcore.h b/src/rcore.h index 18bd6fa80..d54c18426 100644 --- a/src/rcore.h +++ b/src/rcore.h @@ -9,7 +9,7 @@ #include "utils.h" // Required for: TRACELOG() macros -#if defined(PLATFORM_DESKTOP) +#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_WEB) #define GLFW_INCLUDE_NONE // Disable the standard OpenGL header inclusion on GLFW3 // NOTE: Already provided by rlgl implementation (on glad.h) #include "GLFW/glfw3.h" // GLFW3 library: Windows, OpenGL context and Input management @@ -21,7 +21,7 @@ /* Status: - InitWindow: DRM, + InitWindow: DRM, */ @@ -256,4 +256,4 @@ typedef struct CoreData { extern CoreData CORE; -#endif \ No newline at end of file +#endif