From 02a475fd059cf9e13f33c22995deb8be5a3f9d3c Mon Sep 17 00:00:00 2001 From: Darik Horn Date: Thu, 27 Apr 2017 14:07:44 -0400 Subject: [PATCH] Don't define ftruncate in MinGW builds. Resolves: ../../include/cross.h:62:0: warning: "ftruncate" redefined #define ftruncate(blah,blah2) chsize(blah,blah2) --- include/cross.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cross.h b/include/cross.h index 33067bca0..3d1318345 100644 --- a/include/cross.h +++ b/include/cross.h @@ -58,7 +58,7 @@ #define CROSS_NONE 0 #define CROSS_FILE 1 #define CROSS_DIR 2 -#if defined (WIN32) +#if defined (WIN32) && !defined (__MINGW32__) #define ftruncate(blah,blah2) chsize(blah,blah2) #endif