mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-08-24 20:18:32 +00:00
Define WIN32_LEAN_AND_MEAN to save the number of including files.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user