From 3a295887d6abd84f264b22763ddac6eccb023923 Mon Sep 17 00:00:00 2001 From: imallett Date: Fri, 7 Oct 2022 11:20:39 -0700 Subject: [PATCH] Patch to fix previous commit for MinGW. --- tiny_gltf.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 5ba33f2..3572388 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -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 // include API for expanding a file path +#else +#include +#endif #ifdef TINYGLTF_INTERNAL_WIN32_LEAN_AND_MEAN #undef WIN32_LEAN_AND_MEAN