From 4ed1ba10cc9b60fcddfab160c80e80e67a9152d3 Mon Sep 17 00:00:00 2001 From: Fabrizio Fabbri Date: Wed, 11 Jan 2017 08:16:07 +0100 Subject: [PATCH] Fix non msvc build broken by 5758af77 --- src/c/threads/process.d | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/c/threads/process.d b/src/c/threads/process.d index 03474df6..bde09e30 100755 --- a/src/c/threads/process.d +++ b/src/c/threads/process.d @@ -365,7 +365,12 @@ ecl_import_current_thread(cl_object name, cl_object bindings) cl_object p = processes->vector.self.t[i]; if (!Null(p) && - GetThreadId(p->process.thread) == GetThreadId(current)) +#ifdef ECL_WINDOWS_THREADS + GetThreadId(p->process.thread) == GetThreadId(current) +#else + p->process.thread == current +#endif + ) return 0; } }