aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc/win32_threads.c
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2003-07-31 04:52:36 +0000
committerDanny Smith <dannysmith@gcc.gnu.org>2003-07-31 04:52:36 +0000
commit822ed7f80687ba1060f3620f20878642a2b89e78 (patch)
tree80c5f1f071b174114f7b403b765d7a05135d75f9 /boehm-gc/win32_threads.c
parent1aa0a5f67e3ce88116bff98bd677a8e93ec183e3 (diff)
downloadgcc-822ed7f80687ba1060f3620f20878642a2b89e78.zip
gcc-822ed7f80687ba1060f3620f20878642a2b89e78.tar.gz
gcc-822ed7f80687ba1060f3620f20878642a2b89e78.tar.bz2
gc.h (GC_CreateThread): Declare with WINAPI attribute.
* include/gc.h (GC_CreateThread): Declare with WINAPI attribute. * win32_threads.c (GC_CreateThread): Make definitions consistent with declaration. Cast &thread_table[i].handle to PHANDLE in call to DuplicateHandle (thread_start): Declare as static. From-SVN: r69990
Diffstat (limited to 'boehm-gc/win32_threads.c')
-rw-r--r--boehm-gc/win32_threads.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/boehm-gc/win32_threads.c b/boehm-gc/win32_threads.c
index ff1d0662..10cfef9 100644
--- a/boehm-gc/win32_threads.c
+++ b/boehm-gc/win32_threads.c
@@ -376,7 +376,7 @@ void GC_get_next_stack(char *start, char **lo, char **hi)
/* We register threads from DllMain */
-GC_API HANDLE GC_CreateThread(
+GC_API HANDLE WINAPI GC_CreateThread(
LPSECURITY_ATTRIBUTES lpThreadAttributes,
DWORD dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress,
LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId )
@@ -397,9 +397,9 @@ typedef struct {
LPVOID param;
} thread_args;
-DWORD WINAPI thread_start(LPVOID arg);
+static DWORD WINAPI thread_start(LPVOID arg);
-HANDLE WINAPI GC_CreateThread(
+GC_API HANDLE WINAPI GC_CreateThread(
LPSECURITY_ATTRIBUTES lpThreadAttributes,
DWORD dwStackSize, LPTHREAD_START_ROUTINE lpStartAddress,
LPVOID lpParameter, DWORD dwCreationFlags, LPDWORD lpThreadId )
@@ -445,7 +445,7 @@ HANDLE WINAPI GC_CreateThread(
if (!DuplicateHandle(GetCurrentProcess(),
thread_h,
GetCurrentProcess(),
- &thread_table[i].handle,
+ (PHANDLE) &thread_table[i].handle,
0,
0,
DUPLICATE_SAME_ACCESS)) {