Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 34a9637

Browse files
author
Fredrik Lundh
committed
- workaround to make 1.6 build under MSVC 5.0. hopefully,
trent (who broke it in the first place ;-) will come up with a cleaner solution.
1 parent 1bfdc78 commit 34a9637

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

Python/thread_nt.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,11 @@ static void PyThread__init_thread(void)
182182
*/
183183
int PyThread_start_new_thread(void (*func)(void *), void *arg)
184184
{
185+
#if _MSC_VER >= 1200
185186
INT_PTR rv;
187+
#else
188+
unsigned long rv;
189+
#endif
186190
int success = 0;
187191

188192
dprintf(("%ld: PyThread_start_new_thread called\n", PyThread_get_thread_ident()));

0 commit comments

Comments
 (0)