mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-08 10:56:28 +00:00
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...
This commit is contained in:
@@ -64,7 +64,11 @@
|
|||||||
#elif defined RAYMATH_HEADER_ONLY
|
#elif defined RAYMATH_HEADER_ONLY
|
||||||
#define RMDEF static inline // Functions may be inlined, no external out-of-line definition
|
#define RMDEF static inline // Functions may be inlined, no external out-of-line definition
|
||||||
#else
|
#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
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user