From 374747c4f67f6f1975d45b7efd3017e83eada1b5 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Fri, 13 Apr 2012 20:43:23 +0000 Subject: [PATCH] Check whether header really exists before including it. The windows build has been failing for several days due to this. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22146 57a11ea4-9604-0410-9ed3-97b8803252fd --- configure.ac | 2 +- src/libqof/qof/gnc-numeric.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 0ccf291860..e0a18b88e8 100644 --- a/configure.ac +++ b/configure.ac @@ -153,7 +153,7 @@ AC_PROG_MAKE_SET 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,,[ diff --git a/src/libqof/qof/gnc-numeric.c b/src/libqof/qof/gnc-numeric.c index ed2876ca9d..48543ee930 100644 --- a/src/libqof/qof/gnc-numeric.c +++ b/src/libqof/qof/gnc-numeric.c @@ -27,7 +27,9 @@ #include #include #if defined(G_OS_WIN32) && !defined(_MSC_VER) -# include +# ifdef HAVE_POW_H +# include +# endif #endif #include #include