From bd70b8e1f643dbf7252be9bc367e0de0f82d722d Mon Sep 17 00:00:00 2001 From: Adam Scott Date: Fri, 1 Dec 2023 13:39:09 -0500 Subject: Add THREADS_ENABLED macro in order to compile Godot to run on the main thread --- core/os/os.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'core/os/os.cpp') diff --git a/core/os/os.cpp b/core/os/os.cpp index 26ae286979..d5d9988cc1 100644 --- a/core/os/os.cpp +++ b/core/os/os.cpp @@ -504,6 +504,12 @@ bool OS::has_feature(const String &p_feature) { } #endif +#ifdef THREADS_ENABLED + if (p_feature == "threads") { + return true; + } +#endif + if (_check_internal_feature_support(p_feature)) { return true; } -- cgit v1.2.3