mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
Formatting.
This commit is contained in:
parent
bb338a2b9c
commit
1591caa0e5
@ -200,30 +200,25 @@ extern "C" {
|
||||
#error "You must not have both GLFW_DLL and _GLFW_BUILD_DLL defined"
|
||||
#endif
|
||||
|
||||
/* GLFWAPI is used to declare public API functions for export
|
||||
* from the DLL / shared library / dynamic library.
|
||||
*/
|
||||
#if defined(_WIN32) && defined(_GLFW_BUILD_DLL)
|
||||
|
||||
/* 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 */
|
||||
#if defined(__LCC__)
|
||||
#define GLFWAPI extern
|
||||
#else
|
||||
#define GLFWAPI __declspec(dllimport)
|
||||
#endif
|
||||
|
||||
#elif defined(__GNUC__) && defined(_GLFW_BUILD_DLL)
|
||||
|
||||
/* We are building GLFW as a shared / dynamic library */
|
||||
#define GLFWAPI __attribute__((visibility("default")))
|
||||
|
||||
#else
|
||||
|
||||
/* We are building or calling GLFW as a static library */
|
||||
#define GLFWAPI
|
||||
|
||||
#endif
|
||||
|
||||
/* -------------------- END SYSTEM/COMPILER SPECIFIC --------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user