From 063c0af955f8657983512d236a5b858efaf8d676 Mon Sep 17 00:00:00 2001 From: ubkp <118854183+ubkp@users.noreply.github.com> Date: Wed, 20 Sep 2023 11:08:16 -0300 Subject: [PATCH] Fix raymath undefined symbols for desktop and web --- src/rcore.c | 1 - src/rcore.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rcore.c b/src/rcore.c index bd6bec9c5..318e9ee2f 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -109,7 +109,6 @@ #define RLGL_IMPLEMENTATION #include "rlgl.h" // OpenGL abstraction layer to OpenGL 1.1, 3.3+ or ES2 -#define RAYMATH_IMPLEMENTATION // Define external out-of-line implementation #include "raymath.h" // Vector3, Quaternion and Matrix functionality #if defined(SUPPORT_GESTURES_SYSTEM) diff --git a/src/rcore.h b/src/rcore.h index d54c18426..e6c6e3f27 100644 --- a/src/rcore.h +++ b/src/rcore.h @@ -27,6 +27,8 @@ #include "raylib.h" #include "rlgl.h" + +#define RAYMATH_IMPLEMENTATION #include "raymath.h"