Merge "kill HAVE_STAT_ST_MTIM"

This commit is contained in:
Yabin Cui 2014-11-11 00:04:35 +00:00 committed by Gerrit Code Review
commit 3dbac214c2
8 changed files with 3 additions and 40 deletions

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
*/

View File

@ -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
}
/*