Skip to content

Commit 1467a3a

Browse files
bpo-31374: Include pyconfig.h earlier in expat (GH-11064)
Include <pyconfig.h> ealier in Modules/expat/xmltok.c to define properly _POSIX_C_SOURCE. Python defines _POSIX_C_SOURCE as 200809L, whereas <features.h> (included indirectly by <string.h>) defines _POSIX_C_SOURCE as 199506L. (cherry picked from commit cf24735) Co-authored-by: Victor Stinner <[email protected]>
1 parent 1a7b62d commit 1467a3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/expat/xmltok.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
USE OR OTHER DEALINGS IN THE SOFTWARE.
3131
*/
3232

33+
#include <pyconfig.h>
3334
#include <stddef.h>
3435
#include <string.h> /* memcpy */
3536

0 commit comments

Comments
 (0)