Mercurial > cpython-lru_cache-weakref
diff Include/Python.h @ 13351:5619c3f7a44b legacy-trunk
Added #defines to enable SUSv2 compatibility where available and
to switch on support for BSD and SysV on platforms which use glibc
such as Linux.
These #defines are documented in e.g. the file /usr/include/features.h
on Linux platforms and the SUSv2 docs.
| author | Marc-André Lemburg <mal@egenix.com> |
|---|---|
| date | Wed, 05 Jul 2000 08:53:18 +0000 |
| parents | 87ee82e5c56d |
| children | 317e8e09ce87 |
line wrap: on
line diff
--- a/Include/Python.h Wed Jul 05 03:08:55 2000 +0000 +++ b/Include/Python.h Wed Jul 05 08:53:18 2000 +0000 @@ -12,6 +12,16 @@ redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. ******************************************************************/ +/* Enable compiler features including SUSv2 compatibility; switching + on C lib defines doesn't work here, because the symbols haven't + necessarily been defined yet. */ +#ifndef _GNU_SOURCE +# define _GNU_SOURCE 1 +#endif +#ifndef _XOPEN_SOURCE +# define _XOPEN_SOURCE 500 +#endif + /* Include nearly all Python header files */ #include "patchlevel.h"
