From: iceman1001 Date: Tue, 31 Jan 2017 04:33:24 +0000 (+0100) Subject: FIX: fixes warning for "%zu" string formatspecifier on MINGW systems. (Thanks to... X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/71aa1ff8245ddcfdaebdbd5313be596d374949b2 FIX: fixes warning for "%zu" string formatspecifier on MINGW systems. (Thanks to @marshmellow42 for this one) --- diff --git a/client/Makefile b/client/Makefile index 0191ff25..0053d8e5 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 2c881042..9b10af1a 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