diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2002-12-02 22:17:01 +0000 |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2002-12-02 22:17:01 +0000 |
| commit | 0f823c320b40906f6f125a06ab478cb4fb4f6f97 (patch) | |
| tree | 21d69f82fb375fcc2c04387fb789f1c11b7ba895 /Python/thread_pthread.h | |
| parent | 4756c7ffc07c59a6f9e1c5091a64b8b4f6608e50 (diff) | |
| download | cpython-0f823c320b40906f6f125a06ab478cb4fb4f6f97.tar.gz | |
Add compile-time errors for unsupported systems.
Diffstat (limited to 'Python/thread_pthread.h')
| -rw-r--r-- | Python/thread_pthread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h index c9f695726e..6f6fde496b 100644 --- a/Python/thread_pthread.h +++ b/Python/thread_pthread.h @@ -31,11 +31,13 @@ #if defined(__ultrix) && defined(__mips) && defined(_DECTHREADS_) /* _DECTHREADS_ is defined in cma.h which is included by pthread.h */ # define PY_PTHREAD_D4 +# error Systems with PY_PTHREAD_D4 are unsupported. See README. #elif defined(__osf__) && defined (__alpha) /* _DECTHREADS_ is defined in cma.h which is included by pthread.h */ # if !defined(_PTHREAD_ENV_ALPHA) || defined(_PTHREAD_USE_D4) || defined(PTHREAD_USE_D4) # define PY_PTHREAD_D4 +# error Systems with PY_PTHREAD_D4 are unsupported. See README. # else # define PY_PTHREAD_STD # endif @@ -50,13 +52,16 @@ # define PY_PTHREAD_STD # else # define PY_PTHREAD_D7 +# error Systems with PY_PTHREAD_D7 are unsupported. See README. # endif #elif defined(__DGUX) # define PY_PTHREAD_D6 +# error Systems with PY_PTHREAD_D6 are unsupported. See README. #elif defined(__hpux) && defined(_DECTHREADS_) # define PY_PTHREAD_D4 +# error Systems with PY_PTHREAD_D4 are unsupported. See README. #else /* Default case */ # define PY_PTHREAD_STD |
