diff --git a/src/levmar/compiler.h b/src/levmar/compiler.h index d714e508..bff985fc 100644 --- a/src/levmar/compiler.h +++ b/src/levmar/compiler.h @@ -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 +# 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