diff --git a/repertory/librepertory/src/providers/encrypt/encrypt_provider.cpp b/repertory/librepertory/src/providers/encrypt/encrypt_provider.cpp index cefc6d01..47297743 100644 --- a/repertory/librepertory/src/providers/encrypt/encrypt_provider.cpp +++ b/repertory/librepertory/src/providers/encrypt/encrypt_provider.cpp @@ -72,10 +72,6 @@ encrypt_provider::encrypt_provider(app_config &config) : config_(config) {} auto encrypt_provider::create_api_file( const std::string &api_path, bool directory, const std::string &source_path) -> api_file { - static constexpr const std::string_view function_name{ - static_cast(__FUNCTION__), - }; - #if defined(_WIN32) struct _stat64 buf {}; _stat64(source_path.c_str(), &buf); @@ -114,7 +110,7 @@ auto encrypt_provider::create_api_file( static_cast(buf.st_ctime)); file.modified_date = utils::time::windows_time_to_unix_time( static_cast(buf.st_mtime)); -#else // !defined(_WIN32) +#else // !defined(_WIN32) && !defined(__APPLE__) file.changed_date = static_cast( buf.st_mtim.tv_nsec + (buf.st_mtim.tv_sec * utils::time::NANOS_PER_SECOND));