From 9f0458328046c5f44fd91cd3039da37d8a0f76cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 24 Jul 2018 23:32:17 +0200 Subject: [PATCH] Don't try to expand file paths on Emscripten. Since the same is done on all mobile platforms already, I think it should not do any harm. Without this I was getting compilation/linker errors. --- tiny_gltf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tiny_gltf.h b/tiny_gltf.h index 4fab08d..cd7925e 100644 --- a/tiny_gltf.h +++ b/tiny_gltf.h @@ -1486,7 +1486,7 @@ std::string ExpandFilePath(const std::string &filepath, void *) { #else #if defined(TARGET_OS_IPHONE) || defined(TARGET_IPHONE_SIMULATOR) || \ - defined(__ANDROID__) + defined(__ANDROID__) || defined(__EMSCRIPTEN__) // no expansion std::string s = filepath; #else