diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-11-09 12:03:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-09 12:03:37 (GMT) |
commit | 130893debfd97c70e3a89d9ba49892f53e6b9d79 (patch) | |
tree | 35b45b8939a9ab75ec470f0defb37d1ee1f8c77e /Include/internal/pycore_condvar.h | |
parent | 0a18e0510a145427d8ff1864a011c81ea02cdcd4 (diff) | |
download | cpython-130893debfd97c70e3a89d9ba49892f53e6b9d79.zip cpython-130893debfd97c70e3a89d9ba49892f53e6b9d79.tar.gz cpython-130893debfd97c70e3a89d9ba49892f53e6b9d79.tar.bz2 |
bpo-35081: Internal headers require Py_BUILD_CORE (GH-10363)
* All internal header files now require Py_BUILD_CORE or
Py_BUILD_CORE_BUILTIN to be defined.
* _json.c is now compiled with Py_BUILD_CORE_BUILTIN to access
pycore_accu.h header.
* Add an example to Modules/Setup to show how to build _json
as a built-in module; it requires non trivial compiler options.
Diffstat (limited to 'Include/internal/pycore_condvar.h')
-rw-r--r-- | Include/internal/pycore_condvar.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_condvar.h b/Include/internal/pycore_condvar.h index f933089..a12b699 100644 --- a/Include/internal/pycore_condvar.h +++ b/Include/internal/pycore_condvar.h @@ -1,6 +1,10 @@ #ifndef Py_INTERNAL_CONDVAR_H #define Py_INTERNAL_CONDVAR_H +#if !defined(Py_BUILD_CORE) && !defined(Py_BUILD_CORE_BUILTIN) +# error "this header requires Py_BUILD_CORE or Py_BUILD_CORE_BUILTIN define" +#endif + #ifndef _POSIX_THREADS /* This means pthreads are not implemented in libc headers, hence the macro not present in unistd.h. But they still can be implemented as an external |