浏览代码

Merge pull request #34380 from akien-mga/mono-threads-suspend-windows

Mono: Enable threads suspend workaround on Windows
Rémi Verschelde 5 年之前
父节点
当前提交
3aa46a58cd
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/mono/mono_gd/gd_mono.cpp

+ 1 - 1
modules/mono/mono_gd/gd_mono.cpp

@@ -356,7 +356,7 @@ void GDMono::initialize() {
 	}
 	}
 #endif
 #endif
 
 
-#if !defined(WINDOWS_ENABLED) && !defined(NO_MONO_THREADS_SUSPEND_WORKAROUND)
+#if !defined(NO_MONO_THREADS_SUSPEND_WORKAROUND)
 	// FIXME: Temporary workaround. See: https://github.com/godotengine/godot/issues/29812
 	// FIXME: Temporary workaround. See: https://github.com/godotengine/godot/issues/29812
 	if (!OS::get_singleton()->has_environment("MONO_THREADS_SUSPEND")) {
 	if (!OS::get_singleton()->has_environment("MONO_THREADS_SUSPEND")) {
 		OS::get_singleton()->set_environment("MONO_THREADS_SUSPEND", "preemptive");
 		OS::get_singleton()->set_environment("MONO_THREADS_SUSPEND", "preemptive");