diff options
-rw-r--r-- | Source/cmTimestamp.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmTimestamp.cxx b/Source/cmTimestamp.cxx index c3df495..22bb4b7 100644 --- a/Source/cmTimestamp.cxx +++ b/Source/cmTimestamp.cxx @@ -33,16 +33,10 @@ std::string cmTimestamp::CurrentTime( std::string cmTimestamp::FileModificationTime(const char* path, const std::string& formatString, bool utcFlag) { -#ifdef _WIN32 - #define STAT _stat -#else - #define STAT stat -#endif - - struct STAT info; + struct stat info; std::memset(&info, 0, sizeof(info)); - if(STAT(path, &info) != 0) + if(stat(path, &info) != 0) { return std::string(); } |