mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Fix by Mark Hammond to enable truncate() on Windows.
This commit is contained in:
parent
fc49073cd0
commit
b819914263
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue