diff --git a/tiny_gltf.h b/tiny_gltf.h index 81458a6..f6181c4 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -1095,8 +1095,16 @@ class TinyGLTF { #define NOMINMAX #endif +#ifndef WIN32_LEAN_AND_MEAN +#define WIN32_LEAN_AND_MEAN +#define TINYGLTF_INTERNAL_WIN32_LEAN_AND_MEAN +#endif #include // include API for expanding a file path +#ifdef TINYGLTF_INTERNAL_WIN32_LEAN_AND_MEAN +#undef WIN32_LEAN_AND_MEAN +#endif + #if defined(TINYGLTF_INTERNAL_NOMINMAX) #undef NOMINMAX #endif