mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Move distributed and duplicated config for stat() and fstat() into pyport.h.
This commit is contained in:
parent
d2bf3b7ca6
commit
60f42b50d8
4 changed files with 34 additions and 51 deletions
|
@ -6,16 +6,6 @@
|
|||
#include "Python.h"
|
||||
#include "config.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#ifndef DONT_HAVE_SYS_TYPES_H
|
||||
#include <sys/types.h>
|
||||
#endif
|
||||
#ifndef DONT_HAVE_SYS_STAT_H
|
||||
#include <sys/stat.h>
|
||||
#elif defined(HAVE_STAT_H)
|
||||
#include <stat.h>
|
||||
#endif
|
||||
|
||||
time_t
|
||||
PyOS_GetLastModificationTime(char *path, FILE *fp)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue