forked from openkylin/platform_build
am 3dbac214: Merge "kill HAVE_STAT_ST_MTIM"
* commit '3dbac214c22a44042f3e12da37f0fada341123da': kill HAVE_STAT_ST_MTIM
This commit is contained in:
commit
c0ce08cc79
|
@ -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