aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChrisDill <chrisdude134@gmail.com>2018-08-16 18:20:49 +0100
committerChrisDill <chrisdude134@gmail.com>2018-08-16 18:20:49 +0100
commitc669c6762fe14b09c8390067f3b07b12eba05e05 (patch)
tree16d8d157855973e1bcd65750ce44fc84bd1408f2 /src
parenta187361c6f1737204babc0db389d7feb03a3de36 (diff)
downloadraylib-c669c6762fe14b09c8390067f3b07b12eba05e05.tar.gz
raylib-c669c6762fe14b09c8390067f3b07b12eba05e05.zip
Improved raymath defines
- Using raylib.h as reference, added define checks for BUILD_LIBTYPE_SHARED and USE_LIBTYPE_SHARED.
Diffstat (limited to 'src')
-rw-r--r--src/raymath.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/raymath.h b/src/raymath.h
index b4e0336a..dfc43181 100644
--- a/src/raymath.h
+++ b/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