gnucash master: Ensure that PRIi64 is defined in mingw.

John Ralls jralls at code.gnucash.org
Tue Apr 5 18:46:14 EDT 2016


Updated	 via  https://github.com/Gnucash/gnucash/commit/dbf4eada (commit)
	from  https://github.com/Gnucash/gnucash/commit/dc4fce0a (commit)



commit dbf4eada944de2dd4c9dfedb95fec58082da5b40
Author: John Ralls <jralls at ceridwen.us>
Date:   Tue Apr 5 15:49:02 2016 -0700

    Ensure that PRIi64 is defined in mingw.

diff --git a/src/libqof/qof/qofbook.cpp b/src/libqof/qof/qofbook.cpp
index 2817ee9..7349718 100644
--- a/src/libqof/qof/qofbook.cpp
+++ b/src/libqof/qof/qofbook.cpp
@@ -44,6 +44,10 @@ extern "C"
 #include <string.h>
 
 #include <glib.h>
+#ifdef GNC_PLATFORM_WINDOWS
+  /* Mingw disables the standard type macros for C++ without this override. */
+#define __STDC_FORMAT_MACROS = 1
+#endif
 #include <inttypes.h>
 
 #ifdef __cplusplus



Summary of changes:
 src/libqof/qof/qofbook.cpp | 4 ++++
 1 file changed, 4 insertions(+)



More information about the gnucash-changes mailing list