]> granicus.if.org Git - python/commitdiff
The Mac C library (MSL from CodeWarrior 6) and I/O library (GUSI
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 12 Dec 2000 22:42:30 +0000 (22:42 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 12 Dec 2000 22:42:30 +0000 (22:42 +0000)
2.1.3) finally agree on when the epoch is, so the code to convert
epochs has been disabled.

Modules/timemodule.c

index 116b377e8ef7459d770f1927f029ff6e5a16c7b6..31c1d215abba47a53c35ccf2a6a6a6213a047e7e 100644 (file)
@@ -8,7 +8,7 @@
 #ifdef macintosh
 #include <time.h>
 #include <OSUtils.h>
-#ifdef USE_GUSI2
+#ifdef USE_GUSI211
 /* GUSI, the I/O library which has the time() function and such uses the
 ** Mac epoch of 1904. MSL, the C library which has localtime() and so uses
 ** the ANSI epoch of 1900.
@@ -466,7 +466,7 @@ time_mktime(PyObject *self, PyObject *args)
                                 "mktime argument out of range");
                return NULL;
        }
-#if defined(macintosh) && defined(USE_GUSI2)
+#if defined(macintosh) && defined(USE_GUSI211)
        tt = tt - GUSI_TO_MSL_EPOCH;
 #endif
        return PyFloat_FromDouble((double)tt);