summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@nil.im>2020-05-17 00:00:56 +0200
committerJonathan Schleifer <js@nil.im>2020-05-17 00:00:56 +0200
commit1a80e78c96916035f1d659110161097dd5468b23 (patch)
treecbd9e3da9330fb3cb0eb69d1f9048f3d48be46b1
parentd0c2163f5565afef08cf85ef911a64c67c89ddb9 (diff)
OFDate: Don't declare _mktime64() with WINAPI
-rw-r--r--src/OFDate.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OFDate.m b/src/OFDate.m
index b1e1df89..44c39e0e 100644
--- a/src/OFDate.m
+++ b/src/OFDate.m
@@ -52,7 +52,7 @@ 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
@@ -206,7 +206,7 @@ tmAndTzToTime(struct tm *tm, int16_t *tz)
#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
}