support building cimgui on osx

This commit is contained in:
Stephan Dilly
2015-04-07 23:48:22 +02:00
parent 35b93880af
commit 8a25cdd4b3
2 changed files with 40 additions and 0 deletions

View File

@@ -1,7 +1,11 @@
#include "../imgui/imgui.h"
#if defined _WIN32 || defined __CYGWIN__
#define API __declspec(dllexport)
#else
#define API
#endif
extern "C" API ImGuiIO* ImGui_GetIO()
{