diff options
Diffstat (limited to 'libs/host/CopyFile.c')
| -rw-r--r-- | libs/host/CopyFile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libs/host/CopyFile.c b/libs/host/CopyFile.c index 1b5572364d..5be012cf3d 100644 --- a/libs/host/CopyFile.c +++ b/libs/host/CopyFile.c @@ -68,8 +68,8 @@ static bool isSourceNewer(const struct stat* pSrcStat, const struct stat* pDstSt static bool isHiresMtime(const struct stat* pSrcStat) { #if defined(_WIN32) - return 0; -#elif defined(MACOSX_RSRC) + return 0; +#elif defined(__APPLE__) return pSrcStat->st_mtimespec.tv_nsec > 0; #else return pSrcStat->st_mtim.tv_nsec > 0; @@ -295,7 +295,8 @@ static int copyRegular(const char* src, const char* dst, const struct stat* pSrc if (copyResult != 0) return -1; -#ifdef MACOSX_RSRC +#if defined(__APPLE__) + // Copy Mac OS X resource forks too. { char* srcRsrcName = NULL; char* dstRsrcName = NULL; |