Don't define ftruncate in MinGW builds.

Resolves:

	../../include/cross.h:62:0: warning: "ftruncate" redefined
 	#define ftruncate(blah,blah2) chsize(blah,blah2)
This commit is contained in:
Darik Horn
2017-04-27 14:07:44 -04:00
parent 766cdc3873
commit 02a475fd05

View File

@@ -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