mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
e783444440
commit
739267b7c3
8 changed files with 71 additions and 53 deletions
|
@ -1,4 +1,4 @@
|
|||
#include <stat.h>
|
||||
#include "macstat.h"
|
||||
|
||||
/* Interfaced used by import.c */
|
||||
|
||||
|
@ -6,8 +6,8 @@ long
|
|||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue