r14798 - gnucash/trunk/lib/libqof/qof - Error out if none of the two SCANF formats are defined in config.h.

Christian Stimming cstim at cvs.gnucash.org
Tue Sep 5 11:50:30 EDT 2006


Author: cstim
Date: 2006-09-05 11:50:29 -0400 (Tue, 05 Sep 2006)
New Revision: 14798
Trac: http://svn.gnucash.org/trac/changeset/14798

Modified:
   gnucash/trunk/lib/libqof/qof/qofutil.h
Log:
Error out if none of the two SCANF formats are defined in config.h.

Modified: gnucash/trunk/lib/libqof/qof/qofutil.h
===================================================================
--- gnucash/trunk/lib/libqof/qof/qofutil.h	2006-09-05 14:38:27 UTC (rev 14797)
+++ gnucash/trunk/lib/libqof/qof/qofutil.h	2006-09-05 15:50:29 UTC (rev 14798)
@@ -45,7 +45,11 @@
 #if HAVE_SCANF_LLD
 # define QOF_SCANF_LLD "%lld"
 #else
-# define QOF_SCANF_LLD "%qd"
+# if HAVE_SCANF_QD
+#  define QOF_SCANF_LLD "%qd"
+# else
+#  error "No scanf format string is known for LLD. Fix your ./configure so that the correct one is detected!"
+# endif
 #endif
 
 #define QOF_MOD_UTIL "qof-utilities"



More information about the gnucash-changes mailing list