Browse Source

Examples: Added STB_IMAGE_STATIC in examples to avoid conflicting implementation. Relate to #109

ocornut 10 years ago
parent
commit
1c657564ac

+ 1 - 0
examples/directx11_example/main.cpp

@@ -1,6 +1,7 @@
 // ImGui - standalone example application for DirectX 11
 
 #include <windows.h>
+#define STB_IMAGE_STATIC
 #define STB_IMAGE_IMPLEMENTATION
 #include "../shared/stb_image.h"    // for .png loading
 #include "../../imgui.h"

+ 1 - 0
examples/opengl3_example/main.cpp

@@ -5,6 +5,7 @@
 #endif
 
 #include "../../imgui.h"
+#define STB_IMAGE_STATIC
 #define STB_IMAGE_IMPLEMENTATION
 #include "../shared/stb_image.h"        // stb_image.h for PNG loading
 

+ 1 - 0
examples/opengl_example/main.cpp

@@ -5,6 +5,7 @@
 #endif
 
 #include "../../imgui.h"
+#define STB_IMAGE_STATIC
 #define STB_IMAGE_IMPLEMENTATION
 #include "../shared/stb_image.h"        // stb_image.h for PNG loading