summaryrefslogtreecommitdiff
path: root/ptw32_threadStart.c
diff options
context:
space:
mode:
Diffstat (limited to 'ptw32_threadStart.c')
-rw-r--r--ptw32_threadStart.c8
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