浏览代码

Improved raymath defines

- Using raylib.h as reference, added define checks for BUILD_LIBTYPE_SHARED and USE_LIBTYPE_SHARED.
pull/625/head
ChrisDill 6 年前
父节点
当前提交
c669c6762f
共有 1 个文件被更改,包括 5 次插入3 次删除
  1. +5
    -3
      src/raymath.h

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

@ -60,10 +60,12 @@
#endif
#ifdef RAYMATH_IMPLEMENTATION
#if defined(_WIN32)
#define RMDEF __declspec(dllexport) extern inline // Provide external definition
#if defined(_WIN32) && defined(BUILD_LIBTYPE_SHARED)
#define RMDEF __declspec(dllexport) extern inline // We are building raylib as a Win32 shared library (.dll).
#elif defined(_WIN32) && defined(USE_LIBTYPE_SHARED)
#define RLAPI __declspec(dllimport) // We are using raylib as a Win32 shared library (.dll)
#else
#define RMDEF extern inline
#define RMDEF extern inline // Provide external definition
#endif
#elif defined RAYMATH_HEADER_ONLY
#define RMDEF static inline // Functions may be inlined, no external out-of-line definition

||||||
x
 
000:0
正在加载...
取消
保存