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:
Petar Popovic 2024-03-17 18:43:25 +01:00 committed by Sam Lantinga
parent cb39740cfd
commit 4ecea42fb0
1 changed files with 1 additions and 1 deletions

View File

@ -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