]> granicus.if.org Git - python/commitdiff
bpo-37731: Reorder includes in xmltok.c to avoid redefinition of _POSIX_C_SOURCE...
authorPablo Galindo <Pablogsal@gmail.com>
Sat, 12 Oct 2019 19:14:11 +0000 (20:14 +0100)
committerGitHub <noreply@github.com>
Sat, 12 Oct 2019 19:14:11 +0000 (20:14 +0100)
Modules/expat/xmltok.c

index 11e9d1ccdad423e1845dc8d0e23da877c784a6fa..54cfedb85c28c441d7d6809635faf201d427f413 100644 (file)
    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 */
 
 #  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"