Define WIN32_LEAN_AND_MEAN to save the number of including files.

This commit is contained in:
Syoyo Fujita 2019-02-19 21:36:32 +09:00
parent 7d9a0bda3a
commit 87be0ce34b

View File

@ -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 <windows.h> // 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