Skip to content

Commit

Permalink
Rearange HAVE_ISFINITE and HAVE_FINITE
Browse files Browse the repository at this point in the history
  • Loading branch information
j123b567 committed Jun 1, 2016
1 parent 7e0f433 commit 16c2135
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libscpi/inc/scpi/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -235,10 +235,10 @@ extern "C" {
#define SCPIDEFINE_signbit(n) ((n)<0)
#endif

#if HAVE_ISFINITE
#define SCPIDEFINE_isfinite(n) isfinite(n)
#elif HAVE_FINITE
#if HAVE_FINITE
#define SCPIDEFINE_isfinite(n) finite(n)
#elif HAVE_ISFINITE
#define SCPIDEFINE_isfinite(n) isfinite(n)
#else
#define SCPIDEFINE_isfinite(n) (!SCPIDEFINE_isnan((n)) && ((n) < INFINITY) && ((n) > -INFINITY))
#endif
Expand Down

0 comments on commit 16c2135

Please sign in to comment.