瀏覽代碼

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...
pull/524/head
Ahmad Fatoum 7 年之前
父節點
當前提交
8b0fef6c34
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: C3EAC3DE9321D59B
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      src/raymath.h

+ 5
- 1
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

Loading…
取消
儲存