mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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 */
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user