]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: fixes warning for "%zu" string formatspecifier on MINGW systems. (Thanks to...
authoriceman1001 <iceman@iuse.se>
Tue, 31 Jan 2017 04:33:24 +0000 (05:33 +0100)
committericeman1001 <iceman@iuse.se>
Tue, 31 Jan 2017 04:33:24 +0000 (05:33 +0100)
client/Makefile
client/proxmark3.h

index 0191ff25c52dd533c7c6fb5d8f84460948f305be..0053d8e583b024a1c6f28d181d87d1d2ed9d3d3d 100644 (file)
@@ -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
index 2c881042010ff1ac87c15a4a81895b8c6095f3dc..9b10af1ae8a74f2aa083a6ee91a26c7b161a05f3 100644 (file)
@@ -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 <time.h>
   #include <windows.h>
 #else
Impressum, Datenschutz