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

a conflicting definition somewhere).
Resolved line wrap for error message in ins().
This commit is contained in:
Guido van Rossum 1996-12-09 18:38:52 +00:00
parent f52560197f
commit 52174577eb
1 changed files with 4 additions and 2 deletions

View File

@ -59,8 +59,10 @@ PERFORMANCE OF THIS SOFTWARE.
#ifdef HAVE_FTIME
#include <sys/timeb.h>
#ifndef MS_WINDOWS
extern int ftime();
#endif
#endif /* MS_WINDOWS */
#endif /* HAVE_FTIME */
#ifdef __WATCOMC__
#include <i86.h>
@ -335,7 +337,7 @@ ins(d, name, v)
Py_FatalError("Can't initialize time module -- NULL value");
if (PyDict_SetItemString(d, name, v) != 0)
Py_FatalError(
"Can't initialize time module -- PyDict_SetItemString failed");
"Can't initialize time module -- PyDict_SetItemString failed");
Py_DECREF(v);
}