X Tutup
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Modules/expat/expat_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@
#ifndef EXPAT_CONFIG_H
#define EXPAT_CONFIG_H

/* bpo-31374: Expat defines _POSIX_C_SOURCE before including expat_config.h,
but pyconfig.h redefines _POSIX_C_SOURCE on some platforms. Unset it to
prevent a compiler warning. */
#ifdef _POSIX_C_SOURCE
# undef _POSIX_C_SOURCE
#endif

/* Get WORDS_BIGENDIAN and HAVE_MEMMOVE defines from pyconfig.h */
#include <pyconfig.h>

#ifdef WORDS_BIGENDIAN
#define BYTEORDER 4321
#else
Expand Down
X Tutup