diff options
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/fileobject.c | 6 | ||||
-rw-r--r-- | Objects/unicodeobject.c | 6 |
2 files changed, 6 insertions, 6 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; diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index ae27b7f..1b45ef7 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -41,7 +41,7 @@ OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. #include "unicodeobject.h" #include "ucnhash.h" -#ifdef MS_WIN32 +#ifdef MS_WINDOWS #include <windows.h> #endif @@ -2243,7 +2243,7 @@ PyObject *PyUnicode_AsASCIIString(PyObject *unicode) NULL); } -#if defined(MS_WIN32) && defined(HAVE_USABLE_WCHAR_T) +#if defined(MS_WINDOWS) && defined(HAVE_USABLE_WCHAR_T) /* --- MBCS codecs for Windows -------------------------------------------- */ @@ -2305,7 +2305,7 @@ PyObject *PyUnicode_EncodeMBCS(const Py_UNICODE *p, return repr; } -#endif /* MS_WIN32 */ +#endif /* MS_WINDOWS */ /* --- Character Mapping Codec -------------------------------------------- */ |