Mercurial > cpython-lru_cache-weakref
diff Python/thread_pthread.h @ 26598:56dbd9079a13 legacy-trunk
Patch #650415: Avoid redefinition of macros.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 11 Dec 2002 13:12:30 +0000 |
| parents | 76f79bb36fc7 |
| children | 1562c1e10b49 |
line wrap: on
line diff
--- a/Python/thread_pthread.h Wed Dec 11 13:10:57 2002 +0000 +++ b/Python/thread_pthread.h Wed Dec 11 13:12:30 2002 +0000 @@ -79,14 +79,26 @@ /* set default attribute object for different versions */ #if defined(PY_PTHREAD_D4) || defined(PY_PTHREAD_D7) +#if !defined(pthread_attr_default) # define pthread_attr_default pthread_attr_default +#endif +#if !defined(pthread_mutexattr_default) # define pthread_mutexattr_default pthread_mutexattr_default +#endif +#if !defined(pthread_condattr_default) # define pthread_condattr_default pthread_condattr_default +#endif #elif defined(PY_PTHREAD_STD) || defined(PY_PTHREAD_D6) +#if !defined(pthread_attr_default) # define pthread_attr_default ((pthread_attr_t *)NULL) +#endif +#if !defined(pthread_mutexattr_default) # define pthread_mutexattr_default ((pthread_mutexattr_t *)NULL) +#endif +#if !defined(pthread_condattr_default) # define pthread_condattr_default ((pthread_condattr_t *)NULL) #endif +#endif /* Whether or not to use semaphores directly rather than emulating them with
