Improved raymath defines
- Using raylib.h as reference, added define checks for BUILD_LIBTYPE_SHARED and USE_LIBTYPE_SHARED.
This commit is contained in:
parent
a187361c6f
commit
c669c6762f
@ -60,10 +60,12 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef RAYMATH_IMPLEMENTATION
|
#ifdef RAYMATH_IMPLEMENTATION
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32) && defined(BUILD_LIBTYPE_SHARED)
|
||||||
#define RMDEF __declspec(dllexport) extern inline // Provide external definition
|
#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
|
#else
|
||||||
#define RMDEF extern inline
|
#define RMDEF extern inline // Provide external definition
|
||||||
#endif
|
#endif
|
||||||
#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
|
||||||
|
Loading…
Reference in New Issue
Block a user