File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -77,8 +77,8 @@ if(WIN32 AND MINGW)
7777 target_link_libraries (ImGui-SFML PUBLIC imm32 )
7878endif ()
7979if (BUILD_SHARED_LIBS )
80- target_compile_definitions (ImGui-SFML PRIVATE IMGUI_SFML_SHARED_LIB )
81- set_target_properties ( ImGui-SFML PROPERTIES DEFINE_SYMBOL " IMGUI_SFML_EXPORTS" )
80+ target_compile_definitions (ImGui-SFML PUBLIC IMGUI_SFML_SHARED_LIB
81+ PRIVATE IMGUI_SFML_EXPORTS )
8282 set_target_properties (ImGui-SFML PROPERTIES DEBUG_POSTFIX "_d" )
8383endif ()
8484if (IMGUI_SFML_DISABLE_OBSOLETE_FUNCTIONS)
Original file line number Diff line number Diff line change 55#if _WIN32
66#ifdef IMGUI_SFML_EXPORTS
77#define IMGUI_SFML_API __declspec(dllexport)
8- #define IMGUI_API __declspec(dllexport)
98#else
109#define IMGUI_SFML_API __declspec(dllimport)
11- #define IMGUI_API __declspec(dllexport)
1210#endif
13- #elif __GNUC__ >= 4
11+ #elif __GNUC__
1412#define IMGUI_SFML_API __attribute__((visibility("default")))
15- #define IMGUI_API __attribute__((visibility("default")))
1613#else
1714#define IMGUI_SFML_API
18- #define IMGUI_API
1915#endif
2016#else
2117#define IMGUI_SFML_API
22- #define IMGUI_API
2318#endif
2419
20+ #define IMGUI_API IMGUI_SFML_API
2521#endif
You can’t perform that action at this time.
0 commit comments