mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 02:55:58 +08:00
Define WIN32_LEAN_AND_MEAN to save the number of including files.
This commit is contained in:
parent
7d9a0bda3a
commit
87be0ce34b
@ -1095,8 +1095,16 @@ class TinyGLTF {
|
|||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
#endif
|
#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
|
#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)
|
#if defined(TINYGLTF_INTERNAL_NOMINMAX)
|
||||||
#undef NOMINMAX
|
#undef NOMINMAX
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user