mirror of
https://github.com/cimgui/cimgui.git
synced 2025-08-16 14:28:29 +01:00
Merge pull request #23 from Wizzard033/master
Fixed for compiling with MinGW
This commit is contained in:
@@ -32,6 +32,17 @@ ifeq ($(UNAME_S), Darwin) #APPLE
|
|||||||
CFLAGS = $(CXXFLAGS)
|
CFLAGS = $(CXXFLAGS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(OS), Windows_NT)
|
||||||
|
ECHO_MESSAGE = "Windows"
|
||||||
|
|
||||||
|
OUTPUTNAME = cimgui.dll
|
||||||
|
CXXFLAGS = -I../../
|
||||||
|
CXXFLAGS += -Wall
|
||||||
|
CXXFLAGS += -shared
|
||||||
|
LINKFLAGS = -limm32
|
||||||
|
CFLAGS = $(CXXFLAGS)
|
||||||
|
endif
|
||||||
|
|
||||||
.cpp.o:
|
.cpp.o:
|
||||||
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
$(CXX) $(CXXFLAGS) -c -o $@ $<
|
||||||
|
|
||||||
|
@@ -3,7 +3,9 @@
|
|||||||
|
|
||||||
#if defined _WIN32 || defined __CYGWIN__
|
#if defined _WIN32 || defined __CYGWIN__
|
||||||
#define API __declspec(dllexport)
|
#define API __declspec(dllexport)
|
||||||
|
#ifndef __GNUC__
|
||||||
#define snprintf sprintf_s
|
#define snprintf sprintf_s
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define API
|
#define API
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user