diff options
author | rpj <rpj> | 2011-03-06 10:46:44 +0000 |
---|---|---|
committer | rpj <rpj> | 2011-03-06 10:46:44 +0000 |
commit | 1183e5acfa10c7bda1dc39034d6e2fa6dec6016f (patch) | |
tree | fd5220ed96e0fef2390b72ad170b62f0516242ce /ptw32_threadStart.c | |
parent | 85dfeaf6133e1b74eefed26cf76c3f8631c7dd1d (diff) |
64 bit compatibility (mingw64)
Diffstat (limited to 'ptw32_threadStart.c')
-rw-r--r-- | ptw32_threadStart.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ptw32_threadStart.c b/ptw32_threadStart.c index 8121d5a..8dcede3 100644 --- a/ptw32_threadStart.c +++ b/ptw32_threadStart.c @@ -116,7 +116,7 @@ ptw32_terminate () #endif -#if ! defined (__MINGW32__) || (defined (__MSVCRT__) && ! defined (__DMC__)) +#if ! (defined(__MINGW64__) || defined(__MINGW32__)) || (defined (__MSVCRT__) && ! defined (__DMC__)) unsigned __stdcall #else @@ -148,7 +148,7 @@ ptw32_threadStart (void *vthreadParms) free (threadParms); -#if defined (__MINGW32__) && ! defined (__MSVCRT__) +#if (defined(__MINGW64__) || defined(__MINGW32__)) && ! defined (__MSVCRT__) /* * beginthread does not return the thread id and is running * before it returns us the thread handle, and so we do it here. @@ -343,7 +343,7 @@ ptw32_threadStart (void *vthreadParms) (void) pthread_win32_thread_detach_np (); #endif -#if ! defined (__MINGW32__) || defined (__MSVCRT__) || defined (__DMC__) +#if ! (defined(__MINGW64__) || defined(__MINGW32__)) || defined (__MSVCRT__) || defined (__DMC__) _endthreadex ((unsigned)(size_t) status); #else _endthread (); @@ -353,7 +353,7 @@ ptw32_threadStart (void *vthreadParms) * Never reached. */ -#if ! defined (__MINGW32__) || defined (__MSVCRT__) || defined (__DMC__) +#if ! (defined(__MINGW64__) || defined(__MINGW32__)) || defined (__MSVCRT__) || defined (__DMC__) return (unsigned)(size_t) status; #endif |