diff --git a/src/backend/xml/sixtp.c b/src/backend/xml/sixtp.c index 2169a3d0b8..561e804cf5 100644 --- a/src/backend/xml/sixtp.c +++ b/src/backend/xml/sixtp.c @@ -29,6 +29,9 @@ #include #include #include +#ifdef _MSC_VER +typedef int ssize_t; +#endif #include "sixtp.h" #include "sixtp-parsers.h" diff --git a/src/engine/gnc-filepath-utils.c b/src/engine/gnc-filepath-utils.c index f15e9ed2b4..e3ea2a602f 100644 --- a/src/engine/gnc-filepath-utils.c +++ b/src/engine/gnc-filepath-utils.c @@ -50,6 +50,11 @@ #include "gnc-engine.h" #include "gnc-filepath-utils.h" +#ifdef _MSC_VER +#include +#define PATH_MAX MAXPATHLEN +#endif + static QofLogModule log_module = GNC_MOD_BACKEND; diff --git a/src/libqof/qof/gnc-numeric.c b/src/libqof/qof/gnc-numeric.c index 30ab45b3d9..302560a586 100644 --- a/src/libqof/qof/gnc-numeric.c +++ b/src/libqof/qof/gnc-numeric.c @@ -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) { diff --git a/src/libqof/qof/kvp_frame.c b/src/libqof/qof/kvp_frame.c index 8c22069f51..69afd4c664 100644 --- a/src/libqof/qof/kvp_frame.c +++ b/src/libqof/qof/kvp_frame.c @@ -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) {