From 0022dc16a9cbfcdc0c87e563fecfba2177a213f4 Mon Sep 17 00:00:00 2001 From: flagarde Date: Tue, 14 May 2024 12:52:35 +0800 Subject: [PATCH] fix --- include/Khaos/Compiler.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/Khaos/Compiler.h b/include/Khaos/Compiler.h index ccb81fa..5133c21 100644 --- a/include/Khaos/Compiler.h +++ b/include/Khaos/Compiler.h @@ -1100,7 +1100,9 @@ #define KHAOS_DEFINE_Compiler_VERSION_PRIVATE() SET_VERSION(__PATHCC__, __PATHCC_MINOR__, __PATHCC_PATCHLEVEL__, 0) #define KHAOS_COMPILER_EKOPath_PRIVATE() (1L) #elif defined(__EMSCRIPTEN__) - #include + if !defined(__EMSCRIPTEN_major__) || !defined(__EMSCRIPTEN_minor__) || !defined(__EMSCRIPTEN_tiny__) + #include + #endif #define KHAOS_DEFINE_Compiler_VERSION_PRIVATE() SET_VERSION(__EMSCRIPTEN_major__, __EMSCRIPTEN_minor__, __EMSCRIPTEN_tiny__, 0) #define KHAOS_COMPILER_Emscripten_PRIVATE() (1L) #elif defined(__FCC_VERSION)