From 87be0ce34b55cbf53022087ff2a3e55c8fb01701 Mon Sep 17 00:00:00 2001 From: Syoyo Fujita Date: Tue, 19 Feb 2019 21:36:32 +0900 Subject: [PATCH] Define WIN32_LEAN_AND_MEAN to save the number of including files. --- tiny_gltf.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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