Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit cf24735

Browse files
authored
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.
1 parent 2eb6ad8 commit cf24735

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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)