75cf3d3375a1 — Leonard Ritter a month ago
* added missing preamble to imgui_impl_sdl.h
2 files changed, 8 insertions(+), 1 deletions(-)

M genie.lua
M include/tukan/imgui_impl_sdl.h
M genie.lua +1 -1
@@ 140,7 140,7 @@ solution "Tukan"
             }
             --links { "nanovg", "stk", "tess2", "glew", "opengl32", "comctl32" }
             links { "nanovg", "SDL2", "comctl32", "imm32", "uuid", "ole32", "stdc++" }
-            defines { 
+            defines {
                 "TUKAN_DLL",
             }
             buildoptions_cpp {

          
M include/tukan/imgui_impl_sdl.h +7 -0
@@ 18,6 18,13 @@ 
 
 #pragma once
 
+#ifdef _WIN32
+#ifdef TUKAN_DLL
+#undef IMGUI_IMPL_API
+#define IMGUI_IMPL_API extern "C"
+#endif
+#endif
+
 struct SDL_Window;
 typedef union SDL_Event SDL_Event;