Index: src/OFDate.m ================================================================== --- src/OFDate.m +++ src/OFDate.m @@ -50,11 +50,11 @@ defined(OF_HAVE_THREADS) static OFMutex *mutex; #endif #ifdef OF_WINDOWS -static WINAPI __time64_t (*func__mktime64)(struct tm *); +static __time64_t (*func__mktime64)(struct tm *); #endif #ifdef HAVE_GMTIME_R # define GMTIME_RET(field) \ time_t seconds = (time_t)_seconds; \ @@ -204,11 +204,11 @@ mutex = [[OFMutex alloc] init]; #endif #ifdef OF_WINDOWS if ((module = LoadLibrary("msvcrt.dll")) != NULL) - func__mktime64 = (WINAPI __time64_t (*)(struct tm *)) + func__mktime64 = (__time64_t (*)(struct tm *)) GetProcAddress(module, "_mktime64"); #endif } + (instancetype)date