From 6d2b28ff748158be0d63d07988d5d0672905dedf Mon Sep 17 00:00:00 2001 From: Dhruva Sambrani <44899822+DhruvaSambrani@users.noreply.github.com> Date: Mon, 27 Apr 2026 21:18:36 +0200 Subject: [PATCH] raygui build with exported symbols (#543) --- src/raygui.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/raygui.h b/src/raygui.h index 92d9214..3096b1c 100644 --- a/src/raygui.h +++ b/src/raygui.h @@ -360,6 +360,10 @@ #if !defined(_CRT_SECURE_NO_WARNINGS) #define _CRT_SECURE_NO_WARNINGS // Disable unsafe warnings on scanf() functions in MSVC #endif +#else + #if defined(BUILD_LIBTYPE_SHARED) + #define RAYGUIAPI __attribute__((visibility("default"))) // Building as a Unix shared library (.so/.dylib) + #endif #endif // Function specifiers definition