Skip to content

Commit 30114c7

Browse files
bpo-37731: Reorder includes in xmltok.c to avoid redefinition of _POSIX_C_SOURCE (pythonGH-16733)
(cherry picked from commit 8177404) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
1 parent 7356e10 commit 30114c7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Modules/expat/xmltok.c

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

33+
#ifdef _WIN32
34+
# include "winconfig.h"
35+
#else
36+
# ifdef HAVE_EXPAT_CONFIG_H
37+
# include <expat_config.h>
38+
# endif
39+
#endif /* ndef _WIN32 */
40+
3341
#include <stddef.h>
3442
#include <string.h> /* memcpy */
3543

@@ -42,14 +50,6 @@
4250
# include <stdbool.h>
4351
#endif
4452

45-
#ifdef _WIN32
46-
# include "winconfig.h"
47-
#else
48-
# ifdef HAVE_EXPAT_CONFIG_H
49-
# include <expat_config.h>
50-
# endif
51-
#endif /* ndef _WIN32 */
52-
5353
#include "expat_external.h"
5454
#include "internal.h"
5555
#include "xmltok.h"

0 commit comments

Comments
 (0)