-- from Trent Mick: [Patch #101010] replace use of INT_PTR
with uintptr_t (fix MSVC 5.0 build)
This commit is contained in:
parent
6c2f0c73a1
commit
6947d0b65e
@ -241,13 +241,13 @@ typedef int pid_t;
|
|||||||
|
|
||||||
/* End of compilers - finish up */
|
/* End of compilers - finish up */
|
||||||
|
|
||||||
/* define the ANSI intptr_t type for portable use of a pointer sized
|
/* define some ANSI types that are not defined in earlier Win headers */
|
||||||
integer */
|
|
||||||
#if _MSC_VER >= 1200 /* This file only exists in VC 6.0 or higher */
|
#if _MSC_VER >= 1200 /* This file only exists in VC 6.0 or higher */
|
||||||
#include <basetsd.h>
|
#include <basetsd.h>
|
||||||
#endif
|
#endif
|
||||||
#if defined(MS_WINDOWS) && !defined(MS_WIN64)
|
#if defined(MS_WINDOWS) && !defined(MS_WIN64)
|
||||||
typedef long intptr_t;
|
typedef long intptr_t;
|
||||||
|
typedef unsigned long uintptr_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(MS_WIN64)
|
#if defined(MS_WIN64)
|
||||||
|
@ -161,11 +161,7 @@ static void PyThread__init_thread(void)
|
|||||||
*/
|
*/
|
||||||
int PyThread_start_new_thread(void (*func)(void *), void *arg)
|
int PyThread_start_new_thread(void (*func)(void *), void *arg)
|
||||||
{
|
{
|
||||||
#if _MSC_VER >= 1200
|
uintptr_t rv;
|
||||||
INT_PTR rv;
|
|
||||||
#else
|
|
||||||
unsigned long rv;
|
|
||||||
#endif
|
|
||||||
int success = 0;
|
int success = 0;
|
||||||
|
|
||||||
dprintf(("%ld: PyThread_start_new_thread called\n", PyThread_get_thread_ident()));
|
dprintf(("%ld: PyThread_start_new_thread called\n", PyThread_get_thread_ident()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user