diff --git a/lib/libc/strptime.c b/lib/libc/strptime.c index c15b56b909..cdc179abc3 100644 --- a/lib/libc/strptime.c +++ b/lib/libc/strptime.c @@ -48,6 +48,8 @@ #define localtime_r(tp,tmp) (localtime(tp)?(*(tmp)=*localtime(tp),(tmp)):0) #include +#include +#include #ifdef _MSC_VER /* In MSVC, the strncasecmp function is available as _strnicmp */ diff --git a/src/backend/xml/gnc-backend-xml.c b/src/backend/xml/gnc-backend-xml.c index e05ced4550..359363bce7 100644 --- a/src/backend/xml/gnc-backend-xml.c +++ b/src/backend/xml/gnc-backend-xml.c @@ -52,6 +52,13 @@ typedef int ssize_t; # include #endif #include +#ifdef G_OS_WIN32 +# include +# define close _close +# define mktemp _mktemp +# define read _read +# define write _write +#endif #include "qof.h" #include "TransLog.h" diff --git a/src/backend/xml/io-gncxml-v2.c b/src/backend/xml/io-gncxml-v2.c index 8b7cd0db2d..85a3b32ff2 100644 --- a/src/backend/xml/io-gncxml-v2.c +++ b/src/backend/xml/io-gncxml-v2.c @@ -48,6 +48,12 @@ #include "sixtp-utils.h" #include "gnc-xml.h" #include "io-utils.h" +#ifdef G_OS_WIN32 +# include +# define close _close +# define fdopen _fdopen +# define read _read +#endif /* Do not treat -Wstrict-aliasing warnings as errors because of problems of the * G_LOCK* macros as declared by glib. See diff --git a/src/libqof/qof/qof-win32.c b/src/libqof/qof/qof-win32.c index 1e00efa55e..6658bbfc0b 100644 --- a/src/libqof/qof/qof-win32.c +++ b/src/libqof/qof/qof-win32.c @@ -26,6 +26,7 @@ #include "gnc-date-p.h" #include "strptime.h" #include +#include static GHashTable *picture_to_format = NULL; G_LOCK_DEFINE_STATIC(picture_to_format);