diff --git a/BasiliskII/src/Windows/posix_emu.cpp b/BasiliskII/src/Windows/posix_emu.cpp index 26b99939..8d671abc 100755 --- a/BasiliskII/src/Windows/posix_emu.cpp +++ b/BasiliskII/src/Windows/posix_emu.cpp @@ -1124,7 +1124,7 @@ int my_write( int fd, const void *buffer, unsigned int count ) return result; } -FILETIME getFileTime(time_t time) { +static FILETIME get_file_time(time_t time) { FILETIME ft; unsigned long long result = 11644473600LL; result += time; @@ -1140,8 +1140,8 @@ int my_utime( const char *path, struct my_utimbuf * my_times ) LPCTSTR p = MRP(tpath.get()); HANDLE f = CreateFile(p, FILE_WRITE_ATTRIBUTES, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if (f != INVALID_HANDLE_VALUE) { - FILETIME crTime = getFileTime(my_times->actime); - FILETIME modTime = getFileTime(my_times->modtime); + FILETIME crTime = get_file_time(my_times->actime); + FILETIME modTime = get_file_time(my_times->modtime); SetFileTime(f, &crTime, NULL, &modTime); CloseHandle(f); return 0;