Commit 2632df4c authored by Victor Stinner's avatar Victor Stinner Committed by GitHub

[2.7] bpo-31374: Include pyconfig.h earlier in expat (GH-11078)

Include <pyconfig.h> ealier in Modules/expat/xmlparse.c to define
properly _POSIX_C_SOURCE and _XOPEN_SOURCE.
parent 1fd93ff1
......@@ -30,6 +30,9 @@
USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#if !defined(_WIN32) && defined(HAVE_EXPAT_CONFIG_H)
# include <pyconfig.h>
#endif
#if !defined(_GNU_SOURCE)
# define _GNU_SOURCE 1 /* syscall prototype */
#endif
......
......@@ -30,7 +30,9 @@
USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#include <pyconfig.h>
#if !defined(_WIN32) && defined(HAVE_EXPAT_CONFIG_H)
# include <pyconfig.h>
#endif
#include <stddef.h>
#include <string.h> /* memcpy */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment