forked from openkylin/platform_build
Merge "kill HAVE_STAT_ST_MTIM"
This commit is contained in:
commit
3dbac214c2
|
@ -185,11 +185,6 @@
|
|||
*/
|
||||
#define HAVE_PREAD 1
|
||||
|
||||
/*
|
||||
* Define if we have st_mtim in struct stat
|
||||
*/
|
||||
#define HAVE_STAT_ST_MTIM 1
|
||||
|
||||
/*
|
||||
* Define if printf() supports %zd for size_t arguments
|
||||
*/
|
||||
|
|
|
@ -190,11 +190,6 @@
|
|||
*/
|
||||
#define HAVE_PREAD 1
|
||||
|
||||
/*
|
||||
* Define if we have st_mtim in struct stat
|
||||
*/
|
||||
#define HAVE_STAT_ST_MTIM 1
|
||||
|
||||
/*
|
||||
* Define if printf() supports %zd for size_t arguments
|
||||
*/
|
||||
|
|
|
@ -188,11 +188,6 @@
|
|||
*/
|
||||
#define HAVE_PREAD 1
|
||||
|
||||
/*
|
||||
* Define if we have st_mtim in struct stat
|
||||
*/
|
||||
#define HAVE_STAT_ST_MTIM 1
|
||||
|
||||
/*
|
||||
* Define if printf() supports %zd for size_t arguments
|
||||
*/
|
||||
|
|
|
@ -241,11 +241,6 @@
|
|||
*/
|
||||
#define HAVE_PREAD 1
|
||||
|
||||
/*
|
||||
* Define if we have st_mtim in struct stat
|
||||
*/
|
||||
#define HAVE_STAT_ST_MTIM 1
|
||||
|
||||
/*
|
||||
* Define if printf() supports %zd for size_t arguments
|
||||
*/
|
||||
|
|
|
@ -231,11 +231,6 @@
|
|||
*/
|
||||
#define HAVE_PREAD 1
|
||||
|
||||
/*
|
||||
* Define if we have st_mtim in struct stat
|
||||
*/
|
||||
#define HAVE_STAT_ST_MTIM 1
|
||||
|
||||
/*
|
||||
* Define if printf() supports %zd for size_t arguments
|
||||
*/
|
||||
|
|
|
@ -177,11 +177,6 @@
|
|||
*/
|
||||
#define HAVE_PREAD 1
|
||||
|
||||
/*
|
||||
* Define if we have st_mtim in struct stat
|
||||
*/
|
||||
#define HAVE_STAT_ST_MTIM 1
|
||||
|
||||
/*
|
||||
* Define if printf() supports %zd for size_t arguments
|
||||
*/
|
||||
|
|
|
@ -182,11 +182,6 @@
|
|||
*/
|
||||
#define HAVE_PREAD 1
|
||||
|
||||
/*
|
||||
* Define if we have st_mtim in struct stat
|
||||
*/
|
||||
#define HAVE_STAT_ST_MTIM 1
|
||||
|
||||
/*
|
||||
* Define if printf() supports %zd for size_t arguments
|
||||
*/
|
||||
|
|
|
@ -68,15 +68,13 @@ static bool isSourceNewer(const struct stat* pSrcStat, const struct stat* pDstSt
|
|||
*/
|
||||
static bool isHiresMtime(const struct stat* pSrcStat)
|
||||
{
|
||||
#if HAVE_STAT_ST_MTIM
|
||||
#if defined(MACOSX_RSRC)
|
||||
#if defined(__CYGWIN__) || defined(__MINGW32__)
|
||||
return 0;
|
||||
#elif defined(MACOSX_RSRC)
|
||||
return pSrcStat->st_mtimespec.tv_nsec > 0;
|
||||
#else
|
||||
return pSrcStat->st_mtim.tv_nsec > 0;
|
||||
#endif
|
||||
#else
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue