Check whether header <pow.h> 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
This commit is contained in:
Christian Stimming 2012-04-13 20:43:23 +00:00
parent 9b5f2866b1
commit 374747c4f6
2 changed files with 4 additions and 2 deletions

View File

@ -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,,[

View File

@ -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>