浏览代码

Raymath dllexport fix if _WIN32 defined

- Added check for dllexport to compile if _WIN32 defined.
- If not defined then use the original RMDEF.
pull/625/head
ChrisDill 7 年前
父节点
当前提交
a187361c6f
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. +5
    -1
      src/raymath.h

+ 5
- 1
src/raymath.h 查看文件

@ -60,7 +60,11 @@
#endif
#ifdef RAYMATH_IMPLEMENTATION
#define RMDEF __declspec(dllexport) extern inline // Provide external definition
#if defined(_WIN32)
#define RMDEF __declspec(dllexport) extern inline // Provide external definition
#else
#define RMDEF extern inline
#endif
#elif defined RAYMATH_HEADER_ONLY
#define RMDEF static inline // Functions may be inlined, no external out-of-line definition
#else

正在加载...
取消
保存