diff --git a/client/Makefile b/client/Makefile index 0191ff25c..0053d8e58 100644 --- a/client/Makefile +++ b/client/Makefile @@ -19,7 +19,7 @@ LUAPLATFORM = generic 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 diff --git a/client/proxmark3.h b/client/proxmark3.h index 2c8810420..9b10af1ae 100644 --- a/client/proxmark3.h +++ b/client/proxmark3.h @@ -15,7 +15,9 @@ // 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 #include #else