aboutsummaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2018-03-15 12:27:40 +0100
committerGitHub <noreply@github.com>2018-03-15 12:27:40 +0100
commit6c6d6776c0f3d359f0205e1bea45fb41be4e3c1c (patch)
treeb0deb8277eafece270246324f1494e996268bf7e /src/core.c
parent4cae2b8829afb3286da3a5e3b514c4752a332726 (diff)
parentf52d2de582643719814987f7335668b611a4edbd (diff)
downloadraylib-6c6d6776c0f3d359f0205e1bea45fb41be4e3c1c.tar.gz
raylib-6c6d6776c0f3d359f0205e1bea45fb41be4e3c1c.zip
Merge pull request #482 from a3f/master
raymath.h: Use C99 inline semantics
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core.c b/src/core.c
index f4fdf78b..af9bf496 100644
--- a/src/core.c
+++ b/src/core.c
@@ -98,13 +98,12 @@
#define _POSIX_C_SOURCE 199309L // Required for CLOCK_MONOTONIC if compiled with c99 without gnu ext.
#endif
+#define RAYMATH_IMPLEMENTATION // Define external out-of-line implementation of raymath here
+#include "raymath.h" // Required for: Vector3 and Matrix functions
+
#include "rlgl.h" // raylib OpenGL abstraction layer to OpenGL 1.1, 3.3+ or ES2
#include "utils.h" // Required for: fopen() Android mapping
-#define RAYMATH_IMPLEMENTATION // Use raymath as a header-only library (includes implementation)
-#define RAYMATH_EXTERN_INLINE // Compile raymath functions as static inline (remember, it's a compiler hint)
-#include "raymath.h" // Required for: Vector3 and Matrix functions
-
#if defined(SUPPORT_GESTURES_SYSTEM)
#define GESTURES_IMPLEMENTATION
#include "gestures.h" // Gestures detection functionality