From 51193d113bc0620ead036ef3bbf8b2fa5df16423 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 27 Jan 2019 21:12:29 +0530 Subject: [PATCH] Dont include pthread.h on windows --- src/calibre/utils/speedup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/calibre/utils/speedup.c b/src/calibre/utils/speedup.c index daf07e5f21..70a691e369 100644 --- a/src/calibre/utils/speedup.c +++ b/src/calibre/utils/speedup.c @@ -6,7 +6,6 @@ #include #include #include -#include #define _USE_MATH_DEFINES #include #include @@ -492,6 +491,9 @@ speedup_iso_8601(PyObject *self, PyObject *args) { return Py_BuildValue("NOi", PyDateTime_FromDateAndTime(year, month, day, hour, minute, second, usecond), (tzhour == 1000) ? Py_False : Py_True, tzsign*60*(tzhour*60 + tzminute)); } +#ifndef _MSC_VER +#include +#endif #if defined(__FreeBSD__) || defined(__OpenBSD__) #define FREEBSD_SET_NAME #endif