Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 26597:7ddea4dfa519 | 26598:56dbd9079a13 |
|---|---|
| 77 | 77 |
| 78 | 78 |
| 79 /* set default attribute object for different versions */ | 79 /* set default attribute object for different versions */ |
| 80 | 80 |
| 81 #if defined(PY_PTHREAD_D4) || defined(PY_PTHREAD_D7) | 81 #if defined(PY_PTHREAD_D4) || defined(PY_PTHREAD_D7) |
| 82 #if !defined(pthread_attr_default) | |
| 82 # define pthread_attr_default pthread_attr_default | 83 # define pthread_attr_default pthread_attr_default |
| 84 #endif | |
| 85 #if !defined(pthread_mutexattr_default) | |
| 83 # define pthread_mutexattr_default pthread_mutexattr_default | 86 # define pthread_mutexattr_default pthread_mutexattr_default |
| 87 #endif | |
| 88 #if !defined(pthread_condattr_default) | |
| 84 # define pthread_condattr_default pthread_condattr_default | 89 # define pthread_condattr_default pthread_condattr_default |
| 90 #endif | |
| 85 #elif defined(PY_PTHREAD_STD) || defined(PY_PTHREAD_D6) | 91 #elif defined(PY_PTHREAD_STD) || defined(PY_PTHREAD_D6) |
| 92 #if !defined(pthread_attr_default) | |
| 86 # define pthread_attr_default ((pthread_attr_t *)NULL) | 93 # define pthread_attr_default ((pthread_attr_t *)NULL) |
| 94 #endif | |
| 95 #if !defined(pthread_mutexattr_default) | |
| 87 # define pthread_mutexattr_default ((pthread_mutexattr_t *)NULL) | 96 # define pthread_mutexattr_default ((pthread_mutexattr_t *)NULL) |
| 97 #endif | |
| 98 #if !defined(pthread_condattr_default) | |
| 88 # define pthread_condattr_default ((pthread_condattr_t *)NULL) | 99 # define pthread_condattr_default ((pthread_condattr_t *)NULL) |
| 100 #endif | |
| 89 #endif | 101 #endif |
| 90 | 102 |
| 91 | 103 |
| 92 /* Whether or not to use semaphores directly rather than emulating them with | 104 /* Whether or not to use semaphores directly rather than emulating them with |
| 93 * mutexes and condition variables: | 105 * mutexes and condition variables: |
