diff options
Diffstat (limited to 'Python/thread.c')
-rw-r--r-- | Python/thread.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/Python/thread.c b/Python/thread.c index f3c1d45..c8b2809 100644 --- a/Python/thread.c +++ b/Python/thread.c @@ -29,7 +29,7 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. #include <stdlib.h> #else #ifdef Py_DEBUG -extern char *getenv(); +extern char *getenv(const char *); #endif #endif @@ -73,17 +73,6 @@ extern char *getenv(); #endif /* _POSIX_THREADS */ -#ifdef __STDC__ -#define _P(args) args -#define _P0() (void) -#define _P1(v,t) (t) -#define _P2(v1,t1,v2,t2) (t1,t2) -#else -#define _P(args) () -#define _P0() () -#define _P1(v,t) (v) t; -#define _P2(v1,t1,v2,t2) (v1,v2) t1; t2; -#endif /* __STDC__ */ #ifdef Py_DEBUG static int thread_debug = 0; @@ -98,7 +87,7 @@ static int initialized; static void PyThread__init_thread(); /* Forward */ -void PyThread_init_thread _P0() +void PyThread_init_thread(void) { #ifdef Py_DEBUG char *p = getenv("THREADDEBUG"); |