From 7995f7b341579e6a2866f323391061b30556a210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A4r=20Winzell?= Date: Sun, 27 May 2018 13:28:49 -0700 Subject: [PATCH] Resolve _WIN32 isnan() fiasco completely. --- src/FBX2glTF.h | 7 +++++-- src/Fbx2Raw.cpp | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/FBX2glTF.h b/src/FBX2glTF.h index ebdfe77..53b57ce 100644 --- a/src/FBX2glTF.h +++ b/src/FBX2glTF.h @@ -11,8 +11,6 @@ #define __FBX2GLTF_H__ #if defined ( _WIN32 ) -// This can be a macro under Windows, confusing FMT -#undef isnan // Tell Windows not to define min() and max() macros #define NOMINMAX #include @@ -23,6 +21,11 @@ const std::string FBX2GLTF_VERSION = "0.9.5"; #include #include +#if defined ( _WIN32 ) +// this is defined in fbxmath.h +#undef isnan +#endif + #include "mathfu.h" #endif // !__FBX2GLTF_H__ diff --git a/src/Fbx2Raw.cpp b/src/Fbx2Raw.cpp index 3f041e2..a192d8e 100644 --- a/src/Fbx2Raw.cpp +++ b/src/Fbx2Raw.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include "FBX2glTF.h" #include "utils/File_Utils.h"