Commit 78b71c2a authored by Fred Drake's avatar Fred Drake

On Windows, tempnam() is spelled with a leading underscore.

parent 832181e5
......@@ -4211,7 +4211,11 @@ posix_tempnam(PyObject *self, PyObject *args)
if (!PyArg_ParseTuple(args, "|zz:tempnam", &dir, &pfx))
return NULL;
#ifdef MS_WIN32
name = _tempnam(dir, pfx);
#else
name = tempnam(dir, pfx);
#endif
if (name == NULL)
return PyErr_NoMemory();
result = PyString_FromString(name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment