aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2018-08-16 23:04:17 +0200
committerGitHub <noreply@github.com>2018-08-16 23:04:17 +0200
commiteef44fd930d0bdb69563da8b866222fd28c16d59 (patch)
tree60ff4b71bfe6328fe14ba350613fafd2166f8e8a /src
parente4f74e85a4135efe952f9b5472d30a900be5187b (diff)
parentc669c6762fe14b09c8390067f3b07b12eba05e05 (diff)
downloadraylib-eef44fd930d0bdb69563da8b866222fd28c16d59.tar.gz
raylib-eef44fd930d0bdb69563da8b866222fd28c16d59.zip
Merge pull request #625 from ChrisDill/master
Raymath dllexport fix
Diffstat (limited to 'src')
-rw-r--r--src/raymath.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/raymath.h b/src/raymath.h
index c2dc1cf4..dfc43181 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -60,7 +60,13 @@
#endif
#ifdef RAYMATH_IMPLEMENTATION
- #define RMDEF 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 // Provide external definition
+ #endif
#elif defined RAYMATH_HEADER_ONLY
#define RMDEF static inline // Functions may be inlined, no external out-of-line definition
#else