Mercurial > cpython-lru_cache-weakref
diff Mac/Python/macgetmtime.c @ 1822:76d0f2b3b9ee legacy-trunk
Completed (hopefully) the unification of THINK 6.0 and MPW 3.2
versions -- they now share config.c and config.h, and statting is
always done through macstat.[ch] (THINK's <stat.h> defines funny
constants). Also the configuration of stdwin is done differently: you
have to define USE_STDWIN to the compiler prefix.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 29 Aug 1994 08:42:37 +0000 |
| parents | fa8bbd09f2e6 |
| children | c57b5c50a2d2 |
line wrap: on
line diff
--- a/Mac/Python/macgetmtime.c Fri Aug 26 09:09:48 1994 +0000 +++ b/Mac/Python/macgetmtime.c Mon Aug 29 08:42:37 1994 +0000 @@ -1,4 +1,4 @@ -#include <stat.h> +#include "macstat.h" /* Interfaced used by import.c */ @@ -6,8 +6,8 @@ getmtime(path) char *path; { - struct stat st; - if (stat(path, &st) != 0) + struct macstat st; + if (macstat(path, &st) != 0) return -1L; return st.st_mtime; }
