Browse Source

correct HAVE_DECL_XXX asking

pre-master-46
dwarning 17 years ago
parent
commit
c702897d13
  1. 4
      src/include/missing_math.h
  2. 2
      src/maths/misc/isinf.c
  3. 2
      src/maths/misc/isnan.c

4
src/include/missing_math.h

@ -32,9 +32,9 @@ extern int isnan(double);
#endif #endif
#endif #endif
#ifndef HAVE_DECL_ISINF
#if (HAVE_DECL_ISINF < 1)
#ifndef HAVE_ISINF #ifndef HAVE_ISINF
#if defined(HAVE_FINITE) && (defined (HAVE_DECL_ISNAN) || defined (HAVE_ISNAN))
#if defined(HAVE_FINITE) && ((HAVE_DECL_ISNAN < 1) || defined (HAVE_ISNAN))
#define isinf(x) (!finite(x) && !isnan(x)) #define isinf(x) (!finite(x) && !isnan(x))
#else #else
#ifdef HAVE_IEEEFP_H #ifdef HAVE_IEEEFP_H

2
src/maths/misc/isinf.c

@ -1,6 +1,6 @@
#include "ngspice.h" #include "ngspice.h"
#ifndef HAVE_DECL_ISINF
#if (HAVE_DECL_ISINF < 1)
#ifndef HAVE_ISINF #ifndef HAVE_ISINF

2
src/maths/misc/isnan.c

@ -1,6 +1,6 @@
#include "ngspice.h" #include "ngspice.h"
#ifndef HAVE_DECL_ISNAN
#if (HAVE_DECL_ISNAN < 1)
#ifndef HAVE_ISNAN #ifndef HAVE_ISNAN
/* isnan (originally) for SOI devices in MINGW32 hvogt (dev.c) */ /* isnan (originally) for SOI devices in MINGW32 hvogt (dev.c) */

Loading…
Cancel
Save