summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/lf_cxx.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/config/lf_cxx.m4 b/config/lf_cxx.m4
index c2b3cd539..9465290b9 100644
--- a/config/lf_cxx.m4
+++ b/config/lf_cxx.m4
@@ -85,7 +85,7 @@ AC_DEFUN([LF_CXX_PORTABILITY],[
dnl Test whether C++ has std::isnan
AC_MSG_CHECKING(whether C++ has std::isnan)
- AC_TRY_COMPILE([#include <math.h>], [
+ AC_TRY_COMPILE([#include <cmath>], [
std::isnan(0);
], [ AC_MSG_RESULT(yes)
AC_DEFINE(CXX_HAS_STD_ISNAN,[],[Define if has std::isnan]) ],