MSVC compatiblity: Add defines for functions/types which are available under different names in MSVC.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18751 57a11ea4-9604-0410-9ed3-97b8803252fd
pull/1/head
Christian Stimming 16 years ago
parent 3008b34922
commit 1e7ecef77f

@ -29,6 +29,9 @@
#include <ctype.h>
#include <stdarg.h>
#include <sys/types.h>
#ifdef _MSC_VER
typedef int ssize_t;
#endif
#include "sixtp.h"
#include "sixtp-parsers.h"

@ -50,6 +50,11 @@
#include "gnc-engine.h"
#include "gnc-filepath-utils.h"
#ifdef _MSC_VER
#include <glib/gwin32.h>
#define PATH_MAX MAXPATHLEN
#endif
static QofLogModule log_module = GNC_MOD_BACKEND;

@ -1147,6 +1147,10 @@ gnc_numeric_to_decimal(gnc_numeric *a, guint8 *max_decimal_places)
* double_to_gnc_numeric
********************************************************************/
#ifdef _MSC_VER
# define rint /* */
#endif
gnc_numeric
double_to_gnc_numeric(double in, gint64 denom, gint how)
{

@ -1512,6 +1512,9 @@ kvp_frame_for_each_slot(KvpFrame *f,
g_hash_table_foreach(f->hash, (GHFunc) proc, data);
}
#ifdef _MSC_VER
# define isnan _isnan
#endif
gint
double_compare(double d1, double d2)
{

Loading…
Cancel
Save