mirror of
https://github.com/glfw/glfw.git
synced 2025-04-08 14:50:34 +00:00
Fix and clarify comments for GLFWAPI
(cherry picked from commit 685de9089f
)
This commit is contained in:
parent
b9ea733ca8
commit
f001aa3490
1 changed files with 2 additions and 3 deletions
|
@ -262,13 +262,12 @@ extern "C" {
|
|||
/* We are building GLFW as a Win32 DLL */
|
||||
#define GLFWAPI __declspec(dllexport)
|
||||
#elif defined(_WIN32) && defined(GLFW_DLL)
|
||||
/* We are calling GLFW as a Win32 DLL */
|
||||
/* We are calling a GLFW Win32 DLL */
|
||||
#define GLFWAPI __declspec(dllimport)
|
||||
#elif defined(__GNUC__) && defined(_GLFW_BUILD_DLL)
|
||||
/* We are building GLFW as a shared / dynamic library */
|
||||
/* We are building GLFW as a Unix shared library */
|
||||
#define GLFWAPI __attribute__((visibility("default")))
|
||||
#else
|
||||
/* We are building or calling GLFW as a static library */
|
||||
#define GLFWAPI
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue