summaryrefslogtreecommitdiffhomepage
path: root/src/raymath.h
diff options
context:
space:
mode:
authorPeter0x44 <[email protected]>2023-11-28 19:43:45 +0000
committerGitHub <[email protected]>2023-11-28 20:43:45 +0100
commite7a486fa81adac1833253c849ca73c5b3f7ef361 (patch)
tree7c2dd970d41272133d35396d888bb388fb717d7e /src/raymath.h
parentfe53ba80dd684c501eb1c6d297fbf842bb42e515 (diff)
downloadraylib-e7a486fa81adac1833253c849ca73c5b3f7ef361.tar.gz
raylib-e7a486fa81adac1833253c849ca73c5b3f7ef361.zip
Hide unneeded internal symbols when building raylib as an so or dylib (#3573)
Diffstat (limited to 'src/raymath.h')
-rw-r--r--src/raymath.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/raymath.h b/src/raymath.h
index ff601703..069c9464 100644
--- a/src/raymath.h
+++ b/src/raymath.h
@@ -59,7 +59,9 @@
// Function specifiers definition
#if defined(RAYMATH_IMPLEMENTATION)
#if defined(_WIN32) && defined(BUILD_LIBTYPE_SHARED)
- #define RMAPI __declspec(dllexport) extern inline // We are building raylib as a Win32 shared library (.dll).
+ #define RMAPI __declspec(dllexport) extern inline // We are building raylib as a Win32 shared library (.dll)
+ #elif defined(BUILD_LIBTYPE_SHARED)
+ #define RMAPI __attribute__((visibility("default"))) // We are building raylib as a Unix shared library (.so/.dylib)
#elif defined(_WIN32) && defined(USE_LIBTYPE_SHARED)
#define RMAPI __declspec(dllimport) // We are using raylib as a Win32 shared library (.dll)
#else