cimgui / cimgui

c-api for imgui (https://github.com/ocornut/imgui) Look at: https://github.com/cimgui for other widgets
MIT License
1.5k stars 291 forks source link

Allow disabling `__declspec(dllexport)` #31

Closed Kukkimonsuta closed 7 years ago

Kukkimonsuta commented 7 years ago

When statically linking I'd like to remove all exported symbols to avoid collisions, therefor I propose either allowin to define CIMGUI_API manually or add new define CIMGUI_NO_EXPORT and don't include __declspec(dllexport) if set.

I can PR if the change is approved.

extrawurst commented 7 years ago

sure you can introduce a new define to get rid of it, as long as the defaults stay the same. thanks in advance