mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-04 19:10:57 +02:00
try to catch isinf over ieeefp.h
This commit is contained in:
@@ -33,13 +33,17 @@ extern int isnan(double);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_DECL_ISINF
|
||||
# ifndef HAVE_ISINF
|
||||
# if defined(HAVE_FINITE) && (defined (HAVE_DECL_ISNAN) || defined (HAVE_ISNAN))
|
||||
# define isinf(x) (!finite(x) && !isnan(x))
|
||||
# endif
|
||||
# else
|
||||
extern int isinf(double);
|
||||
# endif
|
||||
#ifndef HAVE_ISINF
|
||||
#if defined(HAVE_FINITE) && (defined (HAVE_DECL_ISNAN) || defined (HAVE_ISNAN))
|
||||
#define isinf(x) (!finite(x) && !isnan(x))
|
||||
#else
|
||||
#ifdef HAVE_IEEEFP_H
|
||||
extern int isinf(double);
|
||||
#endif
|
||||
#endif
|
||||
#else /* HAVE_ISINF */
|
||||
extern int isinf(double);
|
||||
#endif /* HAVE_ISINF */
|
||||
#endif /* HAVE_DECL_ISINF */
|
||||
|
||||
#endif /* MISSING_MATH_H_INCLUDED */
|
||||
|
||||
Reference in New Issue
Block a user