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"