mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-14 16:55:56 +08:00
Patch to fix previous commit for MinGW.
This commit is contained in:
parent
d9ce9eb9d2
commit
3a295887d6
@ -1599,7 +1599,7 @@ class TinyGLTF {
|
||||
|
||||
// issue 143.
|
||||
// Define NOMINMAX to avoid min/max defines,
|
||||
// but undef it after included windows.h
|
||||
// but undef it after included Windows.h
|
||||
#ifndef NOMINMAX
|
||||
#define TINYGLTF_INTERNAL_NOMINMAX
|
||||
#define NOMINMAX
|
||||
@ -1609,7 +1609,11 @@ class TinyGLTF {
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#define TINYGLTF_INTERNAL_WIN32_LEAN_AND_MEAN
|
||||
#endif
|
||||
#ifndef __MINGW32__
|
||||
#include <Windows.h> // include API for expanding a file path
|
||||
#else
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifdef TINYGLTF_INTERNAL_WIN32_LEAN_AND_MEAN
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
|
Loading…
x
Reference in New Issue
Block a user