From 2a2bebb3347f8d369820131967e105b1693b657b Mon Sep 17 00:00:00 2001 From: jjgarcia Date: Thu, 2 Mar 2006 12:59:58 +0000 Subject: [PATCH] We need to add explicitely a declaration of GC_CreateThread, because the one in gc.h is only suitable for applications that are linked against the dll --- src/c/threads_win32.d | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) 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;