Skip to content

Commit

Permalink
Merge pull request #69 from Chekov2k/master
Browse files Browse the repository at this point in the history
Switch finite to std::isfinite for ICC and GCC on MacOS
  • Loading branch information
ebertin authored Sep 16, 2024
2 parents 45d20ef + ced6557 commit f273ca7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/levmar/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@
#ifdef _MSC_VER
#define LM_FINITE _finite // MSVC
#elif defined(__ICC) || defined(__INTEL_COMPILER) || defined(__GNUC__)
#define LM_FINITE finite // ICC, GCC
# ifdef __APPLE__
# include <math.h>
# define LM_FINITE isfinite // Apple
# else
# define LM_FINITE finite // ICC, GCC
# endif
#else
#define LM_FINITE finite // other than MSVC, ICC, GCC, let's hope this will work
#endif
Expand Down

0 comments on commit f273ca7

Please sign in to comment.