r22146 - gnucash/trunk - Check whether header <pow.h> really exists before including it.
Christian Stimming
cstim at code.gnucash.org
Fri Apr 13 16:43:24 EDT 2012
Author: cstim
Date: 2012-04-13 16:43:23 -0400 (Fri, 13 Apr 2012)
New Revision: 22146
Trac: http://svn.gnucash.org/trac/changeset/22146
Modified:
gnucash/trunk/configure.ac
gnucash/trunk/src/libqof/qof/gnc-numeric.c
Log:
Check whether header <pow.h> really exists before including it.
The windows build has been failing for several days due to this.
Modified: gnucash/trunk/configure.ac
===================================================================
--- gnucash/trunk/configure.ac 2012-04-13 20:04:08 UTC (rev 22145)
+++ gnucash/trunk/configure.ac 2012-04-13 20:43:23 UTC (rev 22146)
@@ -153,7 +153,7 @@
AC_PROG_LN_S
AC_HEADER_STDC
-AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h sys/wait.h)
+AC_CHECK_HEADERS(limits.h sys/time.h sys/times.h sys/wait.h pow.h)
AC_CHECK_FUNCS(stpcpy memcpy timegm towupper)
AC_CHECK_FUNCS(setenv,,[
AC_CHECK_FUNCS(putenv,,[
Modified: gnucash/trunk/src/libqof/qof/gnc-numeric.c
===================================================================
--- gnucash/trunk/src/libqof/qof/gnc-numeric.c 2012-04-13 20:04:08 UTC (rev 22145)
+++ gnucash/trunk/src/libqof/qof/gnc-numeric.c 2012-04-13 20:43:23 UTC (rev 22146)
@@ -27,7 +27,9 @@
#include <glib.h>
#include <math.h>
#if defined(G_OS_WIN32) && !defined(_MSC_VER)
-# include <pow.h>
+# ifdef HAVE_POW_H
+# include <pow.h>
+# endif
#endif
#include <stdio.h>
#include <stdlib.h>
More information about the gnucash-changes
mailing list