aboutsummaryrefslogtreecommitdiff
path: root/src/core.c
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2018-02-24 15:38:54 +0100
committerAhmad Fatoum <ahmad@a3f.at>2018-02-24 15:40:08 +0100
commita5881fb9ccaf60ea0ff4f6afd7f3925e24330cac (patch)
tree921de9f9e5e2d376069ff39c53a18d53918de1d3 /src/core.c
parentc9043b5a872015bab4dc1b0606504341e9ce5b2b (diff)
downloadraylib-a5881fb9ccaf60ea0ff4f6afd7f3925e24330cac.tar.gz
raylib-a5881fb9ccaf60ea0ff4f6afd7f3925e24330cac.zip
Revert "raymath.h: Use C99 inline semantics"
This reverts commit 6ffc8cb7990fb4ff40f205cb53bec797b10e48a2. and commit e4d7bbec1ef08279495ac41f5f8c4be359c58cf0. which I pushed by mistake...
Diffstat (limited to 'src/core.c')
-rw-r--r--src/core.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core.c b/src/core.c
index 0382aacd..137c0b61 100644
--- a/src/core.c
+++ b/src/core.c
@@ -98,12 +98,13 @@
#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