From 1d501fb001a1ab201cd5fb38e1a011d3bb13a045 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Mon, 14 Dec 2009 17:45:59 +0100 Subject: Take endinanness into consideration when compiling --- src/setup_common.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/setup_common.py') diff --git a/src/setup_common.py b/src/setup_common.py index fdf5c8c..209ccef 100644 --- a/src/setup_common.py +++ b/src/setup_common.py @@ -91,3 +91,11 @@ def get_version(): return version +def get_macros(): + "Sets macros which is relevant for all setup*.py files" + + macros = [] + if sys.byteorder == 'big': + macros.append(("ALIGNMENT_WORKAROUND", None)) + return macros + -- cgit