From 6e640321fdef276ae500c3263eab9962dbc625fd Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 24 Apr 2016 09:53:38 +0300 Subject: Fix the MS-Windows MinGW build * build_w32.bat (GccCompile): Use -std=gnu99, as some code uses C99 features ('for' loop initial declarations). * dir.c (print_dir_data_base) [WINDOWS32]: Cast 'mtime' to 'int64_t', and use %I64d to print it, to avoid compile-time warning about printing a 'time_t' value, which could be either a 32-bit or a 64 bit integral type. --- build_w32.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'build_w32.bat') diff --git a/build_w32.bat b/build_w32.bat index bef80f92..9d752581 100755 --- a/build_w32.bat +++ b/build_w32.bat @@ -157,7 +157,7 @@ goto :EOF :GccCompile :: GCC Compile echo on -gcc -mthreads -Wall -gdwarf-2 -g3 %OPTS% -I%OUTDIR% -I. -I./glob -I./w32/include -DWINDOWS32 -DHAVE_CONFIG_H %EXTRAS% -o %OUTDIR%\%1.o -c %1.c +gcc -mthreads -Wall -std=gnu99 -gdwarf-2 -g3 %OPTS% -I%OUTDIR% -I. -I./glob -I./w32/include -DWINDOWS32 -DHAVE_CONFIG_H %EXTRAS% -o %OUTDIR%\%1.o -c %1.c @echo off goto :EOF -- cgit v1.2.1