From 8b4cbf05c9ad754fb450b31c1210553e1a3a6525 Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 11 Jan 2012 19:17:51 +0000 Subject: [PATCH] wrap isnan declaration, isnan is a macro on modern systems --- ChangeLog | 4 ++++ src/include/ngspice/missing_math.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ee4d82ec7..2cbadf9e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-01-11 Robert Larice + * src/include/ngspice/missing_math.h : + wrap isnan declaration, isnan is a macro on modern systems + 2012-01-11 Robert Larice * src/frontend/resource.c : fix printf/scanf format strings to match `unsigned long long' arguments diff --git a/src/include/ngspice/missing_math.h b/src/include/ngspice/missing_math.h index 0ab551e47..be4d59894 100644 --- a/src/include/ngspice/missing_math.h +++ b/src/include/ngspice/missing_math.h @@ -26,7 +26,7 @@ extern double scalbn(double, int); #endif #if !HAVE_DECL_ISNAN -#ifndef HAVE_ISNAN +#if !defined(HAVE_ISNAN) && !defined(isnan) extern int isnan(double); #endif #endif