Don't define __*_ENDIAN__ macro on Unix. (#495)

This commit is contained in:
Inada Naoki 2022-01-19 14:42:28 +09:00 committed by GitHub
parent bdf0511e29
commit 89ea57747e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 8 deletions

View file

@ -79,12 +79,10 @@ class Sdist(sdist):
libraries = []
macros = []
if sys.platform == "win32":
libraries.append("ws2_32")
if sys.byteorder == "big":
macros = [("__BIG_ENDIAN__", "1")]
else:
macros = [("__LITTLE_ENDIAN__", "1")]
ext_modules = []