diff --git a/src/c/threads_win32.d b/src/c/threads_win32.d index 4e23704b0..629e81fb7 100644 --- a/src/c/threads_win32.d +++ b/src/c/threads_win32.d @@ -16,8 +16,19 @@ */ #include -#include "ecl.h" -#include "internal.h" +#include +#include + +/* + * We have to put this explicit definition here because Boehm GC + * is designed to produce a DLL and we rather want a static + * reference + */ +#include +extern HANDLE WINAPI GC_CreateThread( + LPSECURITY_ATTRIBUTES lpThreadAttributes, + DWORD dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress, + LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId ); #ifndef WITH___THREAD DWORD cl_env_key;