Kaydet (Commit) 52174577 authored tarafından Guido van Rossum's avatar Guido van Rossum

Added #ifdef around ``extern int ftime();'' for MS WINDOWS (which has

a conflicting definition somewhere).
Resolved line wrap for error message in ins().
üst f5256019
...@@ -59,8 +59,10 @@ PERFORMANCE OF THIS SOFTWARE. ...@@ -59,8 +59,10 @@ PERFORMANCE OF THIS SOFTWARE.
#ifdef HAVE_FTIME #ifdef HAVE_FTIME
#include <sys/timeb.h> #include <sys/timeb.h>
#ifndef MS_WINDOWS
extern int ftime(); extern int ftime();
#endif #endif /* MS_WINDOWS */
#endif /* HAVE_FTIME */
#ifdef __WATCOMC__ #ifdef __WATCOMC__
#include <i86.h> #include <i86.h>
...@@ -335,7 +337,7 @@ ins(d, name, v) ...@@ -335,7 +337,7 @@ ins(d, name, v)
Py_FatalError("Can't initialize time module -- NULL value"); Py_FatalError("Can't initialize time module -- NULL value");
if (PyDict_SetItemString(d, name, v) != 0) if (PyDict_SetItemString(d, name, v) != 0)
Py_FatalError( Py_FatalError(
"Can't initialize time module -- PyDict_SetItemString failed"); "Can't initialize time module -- PyDict_SetItemString failed");
Py_DECREF(v); Py_DECREF(v);
} }
......
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