summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2019-10-12 20:14:11 +0100
committerGitHub <noreply@github.com>2019-10-12 20:14:11 +0100
commit8177404d520e81f16324a900f093adf3856d33f8 (patch)
treeb5dd1521e8e91744c956f9f480c4d2de4dad3d43
parent547c60c96e0119e559fb7312beea5fb36be66fdc (diff)
downloadcpython-git-8177404d520e81f16324a900f093adf3856d33f8.tar.gz
bpo-37731: Reorder includes in xmltok.c to avoid redefinition of _POSIX_C_SOURCE (GH-16733)
-rw-r--r--Modules/expat/xmltok.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/Modules/expat/xmltok.c b/Modules/expat/xmltok.c
index 11e9d1ccda..54cfedb85c 100644
--- a/Modules/expat/xmltok.c
+++ b/Modules/expat/xmltok.c
@@ -30,6 +30,14 @@
USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
+#ifdef _WIN32
+# include "winconfig.h"
+#else
+# ifdef HAVE_EXPAT_CONFIG_H
+# include <expat_config.h>
+# endif
+#endif /* ndef _WIN32 */
+
#include <stddef.h>
#include <string.h> /* memcpy */
@@ -42,14 +50,6 @@
# include <stdbool.h>
#endif
-#ifdef _WIN32
-# include "winconfig.h"
-#else
-# ifdef HAVE_EXPAT_CONFIG_H
-# include <expat_config.h>
-# endif
-#endif /* ndef _WIN32 */
-
#include "expat_external.h"
#include "internal.h"
#include "xmltok.h"