diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2002-06-30 15:26:10 +0000 |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2002-06-30 15:26:10 +0000 |
commit | ea2e252d3eed0460aa4595a0d5fd9136b2b1b9ab (patch) | |
tree | a7509b43eebe37d0577a08767b7e03eb81f186f0 /Python/errors.c | |
parent | 2d6c32c591101988991078a1abff58cc3052d65d (diff) | |
download | cpython-ea2e252d3eed0460aa4595a0d5fd9136b2b1b9ab.tar.gz |
Patch #569753: Remove support for WIN16.
Rename all occurrences of MS_WIN32 to MS_WINDOWS.
Diffstat (limited to 'Python/errors.c')
-rw-r--r-- | Python/errors.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/errors.c b/Python/errors.c index 265e5bb48e..f744ad4653 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -15,7 +15,7 @@ extern char *strerror(int); #endif #endif -#ifdef MS_WIN32 +#ifdef MS_WINDOWS #include "windows.h" #include "winbase.h" #endif @@ -267,7 +267,7 @@ PyErr_SetFromErrnoWithFilename(PyObject *exc, char *filename) #ifdef PLAN9 char errbuf[ERRMAX]; #endif -#ifdef MS_WIN32 +#ifdef MS_WINDOWS char *s_buf = NULL; #endif #ifdef EINTR @@ -281,7 +281,7 @@ PyErr_SetFromErrnoWithFilename(PyObject *exc, char *filename) if (i == 0) s = "Error"; /* Sometimes errno didn't get set */ else -#ifndef MS_WIN32 +#ifndef MS_WINDOWS s = strerror(i); #else { @@ -322,7 +322,7 @@ PyErr_SetFromErrnoWithFilename(PyObject *exc, char *filename) PyErr_SetObject(exc, v); Py_DECREF(v); } -#ifdef MS_WIN32 +#ifdef MS_WINDOWS LocalFree(s_buf); #endif return NULL; |