diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-06-30 15:26:10 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-06-30 15:26:10 (GMT) |
commit | 6238d2b024f061159b2613387ff700695c10deef (patch) | |
tree | 2c882431a5f1a348c7b4589f0e51a7e0d8bdef46 /Objects/fileobject.c | |
parent | adfa7409f8286bd9581d5decfac5a5edcc1aa7de (diff) | |
download | cpython-6238d2b024f061159b2613387ff700695c10deef.zip cpython-6238d2b024f061159b2613387ff700695c10deef.tar.gz cpython-6238d2b024f061159b2613387ff700695c10deef.tar.bz2 |
Patch #569753: Remove support for WIN16.
Rename all occurrences of MS_WIN32 to MS_WINDOWS.
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r-- | Objects/fileobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c index d4caaf0..a42502b 100644 --- a/Objects/fileobject.c +++ b/Objects/fileobject.c @@ -8,7 +8,7 @@ #include <sys/types.h> #endif /* DONT_HAVE_SYS_TYPES_H */ -#ifdef MS_WIN32 +#ifdef MS_WINDOWS #define fileno _fileno /* can simulate truncate with Win32 API functions; see file_truncate */ #define HAVE_FTRUNCATE @@ -480,7 +480,7 @@ file_truncate(PyFileObject *f, PyObject *args) if (ret != 0) goto onioerror; -#ifdef MS_WIN32 +#ifdef MS_WINDOWS /* MS _chsize doesn't work if newsize doesn't fit in 32 bits, so don't even try using it. */ { @@ -542,7 +542,7 @@ file_truncate(PyFileObject *f, PyObject *args) ret = ftruncate(fileno(f->f_fp), newsize); Py_END_ALLOW_THREADS if (ret != 0) goto onioerror; -#endif /* !MS_WIN32 */ +#endif /* !MS_WINDOWS */ Py_INCREF(Py_None); return Py_None; |