mirror of
https://github.com/glfw/glfw.git
synced 2026-08-29 03:04:14 +02:00
Do not export internal symbols from a unix shared library.
This commit is contained in:
@@ -157,6 +157,10 @@ extern "C" {
|
||||
#define GLFWAPI __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
#elif defined(__GNUC__) && defined(_GLFW_BUILD_DLL)
|
||||
|
||||
#define GLFWAPI __attribute__((visibility("default")))
|
||||
|
||||
#else
|
||||
|
||||
/* We are either building/calling a static lib or we are non-win32 */
|
||||
|
||||
Reference in New Issue
Block a user