summaryrefslogtreecommitdiffhomepage
path: root/src/raymath.h
diff options
context:
space:
mode:
authorChrisDill <[email protected]>2018-08-16 12:54:45 +0100
committerChrisDill <[email protected]>2018-08-16 12:54:45 +0100
commita187361c6f1737204babc0db389d7feb03a3de36 (patch)
tree3be7c25293882dc5373268ee02ed8d16a2f1faa3 /src/raymath.h
parent42b52ecdb1b9e0a6bb625215e59e917dbe93dfe4 (diff)
downloadraylib-a187361c6f1737204babc0db389d7feb03a3de36.tar.gz
raylib-a187361c6f1737204babc0db389d7feb03a3de36.zip
Raymath dllexport fix if _WIN32 defined
- Added check for dllexport to compile if _WIN32 defined. - If not defined then use the original RMDEF.
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/raymath.h b/src/raymath.h
index 4cbf3f4d..b4e0336a 100644
--- a/src/raymath.h
+++ b/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