From 55bd698541229d7f2ccf46a31966201b8c386e60 Mon Sep 17 00:00:00 2001 From: mmcomando Date: Sat, 13 Mar 2021 13:23:19 +0000 Subject: [PATCH] Update thread_pool.d --- demos/external/sources/mmutils/thread_pool.d | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/demos/external/sources/mmutils/thread_pool.d b/demos/external/sources/mmutils/thread_pool.d index 093cb6d..7139a97 100644 --- a/demos/external/sources/mmutils/thread_pool.d +++ b/demos/external/sources/mmutils/thread_pool.d @@ -1,4 +1,4 @@ -module mmutils.thread_pool; +module mmutils.thread_pool; import std.algorithm : map; @@ -9,7 +9,9 @@ version (WebAssembly) { version = MM_NO_LOGS; version = MM_USE_POSIX_THREADS; - struct FILE; + extern(C) struct FILE + { + } } else { @@ -1825,4 +1827,4 @@ else // -fsanitize=address // rdmd -g -of=thread_pool src/mmutils/thread_pool.d && ./thread_pool // ldmd2 -release -inline -checkaction=C -g -of=thread_pool src/mmutils/thread_pool.d && ./thread_pool -// ldmd2 -checkaction=C -g -of=thread_pool src/mmutils/thread_pool.d && ./thread_pool \ No newline at end of file +// ldmd2 -checkaction=C -g -of=thread_pool src/mmutils/thread_pool.d && ./thread_pool