Define _XOPEN_SOURCE and _GNU_SOURCE in pyconfig.h, to have them

available in the configure tests already.
This commit is contained in:
Martin v. Löwis 2002-07-20 08:51:52 +00:00
parent 0a30e648e0
commit 6f18a3c124
4 changed files with 39 additions and 12 deletions

View file

@ -2,17 +2,6 @@
#define Py_PYTHON_H
/* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */
/* Enable compiler features; 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"