Skip to content

Fix symbol export/import on windows#335

Open
lapinozz wants to merge 4 commits intoSFML:masterfrom
lapinozz:master
Open

Fix symbol export/import on windows#335
lapinozz wants to merge 4 commits intoSFML:masterfrom
lapinozz:master

Conversation

@lapinozz
Copy link
Copy Markdown

Fixed the DLLs macros so the shared build would work with MSVC

IMGUI_SFML_SHARED_LIB should be defined public in shared build, so that when you link against the lib you get dll import
IMGUI_SFML_EXPORTS is defined private so that the lib itself compiles with the dll export

IMGUI_API and IMGUI_SFML_API should both be the same since the source for both is compiled directly into the lib so I simplified the code and defined IMGUI_API as IMGUI_SFML_API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants