summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-06-30 15:26:10 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-06-30 15:26:10 (GMT)
commit6238d2b024f061159b2613387ff700695c10deef (patch)
tree2c882431a5f1a348c7b4589f0e51a7e0d8bdef46 /Python/errors.c
parentadfa7409f8286bd9581d5decfac5a5edcc1aa7de (diff)
downloadcpython-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 'Python/errors.c')
-rw-r--r--Python/errors.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Python/errors.c b/Python/errors.c
index 265e5bb..f744ad4 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;