From 9e48fbd6b581ec051a72f672441b695a154eca0f Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Wed, 7 Aug 2002 10:25:30 +0000 Subject: [PATCH] added a define for ftruncate so it works under win32 Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@117 --- include/cross.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/cross.h b/include/cross.h index 20d2d5a9..2dc3d2cf 100644 --- a/include/cross.h +++ b/include/cross.h @@ -46,7 +46,9 @@ #define CROSS_NONE 0 #define CROSS_FILE 1 #define CROSS_DIR 2 - +#if defined (_MSC_VER) +#define ftruncate(blah,blah2) chsize(blah,blah2) +#endif extern const char * dosbox_datadir;