8000 bpo-37731: Squish another _POSIX_C_SOURCE redefinition problem in exp… · stackless-dev/stackless@089e5f5 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 089e5f5

Browse files
authored
bpo-37731: Squish another _POSIX_C_SOURCE redefinition problem in expat. (pythonGH-17077)
1 parent 30114c7 commit 089e5f5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Modules/expat/xmlparse.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@
3939
# define _CRT_RAND_S
4040
#endif
4141

42+
#ifdef _WIN32
43+
# include "winconfig.h"
44+
#elif defined(HAVE_EXPAT_CONFIG_H)
45+
# include <expat_config.h>
46+
#endif /* ndef _WIN32 */
47+
4248
#include <stddef.h>
4349
#include <string.h> /* memset(), memcpy() */
4450
#include <assert.h>
@@ -58,12 +64,6 @@
5864

5965
#define XML_BUILDING_EXPAT 1
6066

61-
#ifdef _WIN32
62-
# include "winconfig.h"
63-
#elif defined(HAVE_EXPAT_CONFIG_H)
64-
# include <expat_config.h>
65-
#endif /* ndef _WIN32 */
66-
6767
#include "ascii.h"
6868
#include "expat.h"
6969
#include "siphash.h"

0 commit comments

Comments
 (0)
0