Fix by Mark Hammond to enable truncate() on Windows.

This commit is contained in:
Guido van Rossum 1997-05-06 15:23:24 +00:00
parent fc49073cd0
commit b819914263

View file

@ -38,6 +38,12 @@ PERFORMANCE OF THIS SOFTWARE.
#include <unistd.h>
#endif
#ifdef MS_WIN32
#define ftruncate _chsize
#define fileno _fileno
#define HAVE_FTRUNCATE
#endif
#ifdef THINK_C
#define HAVE_FOPENRF
#endif