ifneq (,$(findstring MINGW,$(platform)))
LDLIBS += -L/mingw/lib -lgdi32
- CFLAGS += -I/mingw/include
+ CFLAGS += -I/mingw/include -D__USE_MINGW_ANSI_STDIO=1
CXXFLAGS = -I$(QTDIR)/include -I$(QTDIR)/include/QtCore -I$(QTDIR)/include/QtGui
MOC = $(QTDIR)/bin/moc
LUAPLATFORM = mingw
// Handle platform specific includes
#ifdef _WIN32
// for MINGW32 environments
- #define _USE_32BIT_TIME_T 1
+ #ifndef _USE_32BIT_TIME_T
+ #define _USE_32BIT_TIME_T 1
+ #endif
#include <time.h>
#include <windows.h>
#else