Skip to content

Commit b6ef6f6

Browse files
authored
bpo-31374: expat doesn't include <pyconfig.h> on Windows (GH-11079)
1 parent fc662ac commit b6ef6f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Modules/expat/xmltok.c

+3-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
USE OR OTHER DEALINGS IN THE SOFTWARE.
3131
*/
3232

33-
#include <pyconfig.h>
33+
#if !defined(_WIN32) && defined(HAVE_EXPAT_CONFIG_H)
34+
# include <pyconfig.h>
35+
#endif
3436
#include <stddef.h>
3537
#include <string.h> /* memcpy */
3638

0 commit comments

Comments
 (0)