Skip to content

Commit

Permalink
use isfinite
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Jan 17, 2025
1 parent 7c118c1 commit f27e792
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions 3rd_party/sba/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
#ifndef _COMPILER_H_
#define _COMPILER_H_

#include <math.h>

/* note: intel's icc defines both __ICC & __INTEL_COMPILER.
* Also, some compilers other than gcc define __GNUC__,
Expand All @@ -33,12 +32,7 @@
#define inline // other than MSVC, ICC, GCC: define empty
#endif

#ifdef _MSC_VER
#define SBA_FINITE _finite // MSVC
#elif defined(__ICC) || defined(__INTEL_COMPILER) || defined(__GNUC__)
#define SBA_FINITE finite // ICC, GCC
#else
#define SBA_FINITE finite // other than MSVC, ICC, GCC, let's hope this will work
#endif
#define SBA_FINITE isfinite


#endif /* _COMPILER_H_ */

0 comments on commit f27e792

Please sign in to comment.