From 4e5ed0af94acdb347902dcfbd2313b4a4ef99640 Mon Sep 17 00:00:00 2001 From: Sara Date: Tue, 21 Nov 2023 11:03:45 +0100 Subject: [PATCH] added define for isnanf to be _isnanf on windows, because windows sucks --- core/src/vmath.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/vmath.h b/core/src/vmath.h index 9b2aed2..4c92d6b 100644 --- a/core/src/vmath.h +++ b/core/src/vmath.h @@ -4,6 +4,11 @@ #include "stddef.h" #include +#if defined _WIN32 && ! defined isnanf +# define isnanf(x) _isnanf(x) +# define HAVE_ISNANF +#endif + #if VMATH_SDL == 1 #include