mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-09 16:12:52 +00:00
testautomation_math.c: use isinf(V) instead of fpclassify(V) == FP_INFINITE
Using fpclassify can cause a linker error. Using isinf instead fixes this.
This commit is contained in:
committed by
Sam Lantinga
parent
cb39740cfd
commit
4ecea42fb0
@@ -25,7 +25,7 @@
|
||||
#define EULER M_E
|
||||
#endif
|
||||
|
||||
#define IS_INFINITY(V) fpclassify(V) == FP_INFINITE
|
||||
#define IS_INFINITY(V) isinf(V)
|
||||
|
||||
/* Square root of 3 (used in atan2) */
|
||||
#define SQRT3 1.7320508075688771931766041234368458390235900878906250
|
||||
|
||||
Reference in New Issue
Block a user