Win32: Add more header includes where necessary to avoid using undeclared functions.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18797 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming
2010-03-03 20:45:58 +00:00
parent e1f8c70137
commit 04ffda604b
4 changed files with 16 additions and 0 deletions

View File

@@ -48,6 +48,8 @@
#define localtime_r(tp,tmp) (localtime(tp)?(*(tmp)=*localtime(tp),(tmp)):0)
#include <windows.h>
#include <stdlib.h>
#include <malloc.h>
#ifdef _MSC_VER
/* In MSVC, the strncasecmp function is available as _strnicmp */

View File

@@ -52,6 +52,13 @@ typedef int ssize_t;
# include <dirent.h>
#endif
#include <time.h>
#ifdef G_OS_WIN32
# include <io.h>
# define close _close
# define mktemp _mktemp
# define read _read
# define write _write
#endif
#include "qof.h"
#include "TransLog.h"

View File

@@ -48,6 +48,12 @@
#include "sixtp-utils.h"
#include "gnc-xml.h"
#include "io-utils.h"
#ifdef G_OS_WIN32
# include <io.h>
# 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

View File

@@ -26,6 +26,7 @@
#include "gnc-date-p.h"
#include "strptime.h"
#include <windows.h>
#include <stdlib.h>
static GHashTable *picture_to_format = NULL;
G_LOCK_DEFINE_STATIC(picture_to_format);