Skip to content

Commit a879412

Browse files
committed
FIX: using isfinite instead of finite function on macOS as finite is reported to be deprecated
1 parent 548f5f1 commit a879412

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/include/reb-config.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,14 @@ These are now obsolete (as of A107) and should be removed:
141141
#define MIN_OS // not all devices are working
142142
#define NO_GRAPHICS // no graphics yet
143143
#define AGG_FREETYPE //use freetype2 library for fonts by default
144-
#define FINITE finite
145144
#define INLINE
146145

146+
#ifdef TO_OSX_X64
147+
#define FINITE isfinite
148+
#else
149+
#define FINITE finite
150+
#endif
151+
147152
#ifndef TO_HAIKU
148153
// Unsupported by gcc 2.95.3-haiku-121101
149154
#define API_EXPORT __attribute__((visibility("default")))

0 commit comments

Comments
 (0)