mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-19 20:03:16 +00:00
Don't define __*_ENDIAN__ macro on Unix. (#495)
This commit is contained in:
parent
bdf0511e29
commit
89ea57747e
2 changed files with 2 additions and 8 deletions
|
@ -11,7 +11,6 @@ if PY2:
|
|||
def dict_iteritems(d):
|
||||
return d.iteritems()
|
||||
|
||||
|
||||
else:
|
||||
int_types = int
|
||||
unicode = str
|
||||
|
@ -32,7 +31,6 @@ if sys.version_info < (3, 5):
|
|||
and e.args[0].startswith("maximum recursion depth exceeded")
|
||||
)
|
||||
|
||||
|
||||
else:
|
||||
|
||||
def _is_recursionerror(e):
|
||||
|
@ -68,7 +66,6 @@ if hasattr(sys, "pypy_version_info"):
|
|||
def getvalue(self):
|
||||
return self.builder.build()
|
||||
|
||||
|
||||
else:
|
||||
USING_STRINGBUILDER = False
|
||||
from io import BytesIO as StringIO
|
||||
|
@ -143,7 +140,6 @@ if sys.version_info < (2, 7, 6):
|
|||
"""Explicit type cast for legacy struct.unpack_from"""
|
||||
return struct.unpack_from(f, bytes(b), o)
|
||||
|
||||
|
||||
else:
|
||||
_unpack_from = struct.unpack_from
|
||||
|
||||
|
|
6
setup.py
6
setup.py
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue