From 71aa1ff8245ddcfdaebdbd5313be596d374949b2 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Tue, 31 Jan 2017 05:33:24 +0100 Subject: [PATCH] FIX: fixes warning for "%zu" string formatspecifier on MINGW systems. (Thanks to @marshmellow42 for this one) --- client/Makefile | 2 +- client/proxmark3.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 -- 2.39.2