mirror of
https://github.com/python/cpython.git
synced 2024-11-24 00:38:00 +01:00
739267b7c3
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.
14 lines
179 B
C
14 lines
179 B
C
#include "macstat.h"
|
|
|
|
/* Interfaced used by import.c */
|
|
|
|
long
|
|
getmtime(path)
|
|
char *path;
|
|
{
|
|
struct macstat st;
|
|
if (macstat(path, &st) != 0)
|
|
return -1L;
|
|
return st.st_mtime;
|
|
}
|