mirror of
https://git.mirrors.martin98.com/https://github.com/syoyo/tinygltf.git
synced 2025-08-16 14:16:03 +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.
|
// issue 143.
|
||||||
// Define NOMINMAX to avoid min/max defines,
|
// Define NOMINMAX to avoid min/max defines,
|
||||||
// but undef it after included windows.h
|
// but undef it after included Windows.h
|
||||||
#ifndef NOMINMAX
|
#ifndef NOMINMAX
|
||||||
#define TINYGLTF_INTERNAL_NOMINMAX
|
#define TINYGLTF_INTERNAL_NOMINMAX
|
||||||
#define NOMINMAX
|
#define NOMINMAX
|
||||||
@ -1609,7 +1609,11 @@ class TinyGLTF {
|
|||||||
#define WIN32_LEAN_AND_MEAN
|
#define WIN32_LEAN_AND_MEAN
|
||||||
#define TINYGLTF_INTERNAL_WIN32_LEAN_AND_MEAN
|
#define TINYGLTF_INTERNAL_WIN32_LEAN_AND_MEAN
|
||||||
#endif
|
#endif
|
||||||
|
#ifndef __MINGW32__
|
||||||
#include <Windows.h> // include API for expanding a file path
|
#include <Windows.h> // include API for expanding a file path
|
||||||
|
#else
|
||||||
|
#include <windows.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef TINYGLTF_INTERNAL_WIN32_LEAN_AND_MEAN
|
#ifdef TINYGLTF_INTERNAL_WIN32_LEAN_AND_MEAN
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
|
Loading…
x
Reference in New Issue
Block a user