From 1668d1ecc54c0abb2c904abf72c17be4b960af80 Mon Sep 17 00:00:00 2001 From: operatios <23556388+operatios@users.noreply.github.com> Date: Sat, 24 Sep 2022 22:37:14 +0300 Subject: [PATCH] Fix UTF-8 filepath on LLVM MinGW --- tiny_gltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index d6ea795..4f8fcd2 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -2597,7 +2597,7 @@ bool FileExists(const std::string &abs_filename, void *) { } #else #ifdef _WIN32 -#if defined(_MSC_VER) || defined(__GLIBCXX__) +#if defined(_MSC_VER) || defined(__GLIBCXX__) || defined(_LIBCPP_VERSION) FILE *fp = nullptr; errno_t err = _wfopen_s(&fp, UTF8ToWchar(abs_filename).c_str(), L"rb"); if (err != 0) {