From 0d90f6e4e633c4f1674e90ae57b772f8d0f16950 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Tue, 1 Sep 2020 17:36:36 +0200 Subject: [PATCH] define isnanf macro if not yet done on linux --- src/cross_os.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/src/cross_os.h b/src/cross_os.h index b27537c..842a549 100644 --- a/src/cross_os.h +++ b/src/cross_os.h @@ -24,15 +24,18 @@ //cross platform os helpers #if defined(_WIN32) || defined(_WIN64) -//disable warning on iostream functions on windows -#define _CRT_SECURE_NO_WARNINGS -#include "windows.h" -#define isnanf _isnanf + //disable warning on iostream functions on windows + #define _CRT_SECURE_NO_WARNINGS + #include "windows.h" + #define isnanf _isnanf #elif __APPLE__ #elif __unix__ -#include -#include -#include + #include + #include + #include + #ifndef isnanf + #define isnanf __isnanf + #endif #endif const char* getUserDir (); -- 2.47.3