summaryrefslogtreecommitdiffhomepage
path: root/src/raymath.h
diff options
context:
space:
mode:
authorAhmad Fatoum <[email protected]>2018-04-11 10:36:47 +0200
committerAhmad Fatoum <[email protected]>2018-04-11 10:43:27 +0200
commit8b0fef6c34bc6732e297edd85627d62fe1d6e6be (patch)
tree9f0419254dcc6a5a440430a9fc5a2de2b36bea45 /src/raymath.h
parent4cc12ef2b32f66f160e4e401e5cd76d1740eaf61 (diff)
downloadraylib-8b0fef6c34bc6732e297edd85627d62fe1d6e6be.tar.gz
raylib-8b0fef6c34bc6732e297edd85627d62fe1d6e6be.zip
raymath: Workaround tcc inline function limitation
Reported in #435, tcc generates out-of-line definitions for inline symbols, something it shouldn't. This fix punishes tcc for that by making applications it compiles (slightly) larger...
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/raymath.h b/src/raymath.h
index 22adfe52..d49f3622 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -64,7 +64,11 @@
#elif defined RAYMATH_HEADER_ONLY
#define RMDEF static inline // Functions may be inlined, no external out-of-line definition
#else
- #define RMDEF inline // Functions may be inlined or external definition used
+ #ifdef __TINYC__
+ #define RMDEF static inline // plain inline not supported by tinycc (See issue #435)
+ #else
+ #define RMDEF inline // Functions may be inlined or external definition used
+ #endif
#endif