diff options
author | David Sommerseth <davids@redhat.com> | 2009-12-14 17:45:59 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-12-14 17:46:23 +0100 |
commit | 1d501fb001a1ab201cd5fb38e1a011d3bb13a045 (patch) | |
tree | ea7a536d07aeede771f9dba7976f8ea2b14aa679 /src/setup_common.py | |
parent | 2b34fc482c99cc1011cc7eae9da4b3dc3d1ab2c7 (diff) | |
download | python-dmidecode-1d501fb001a1ab201cd5fb38e1a011d3bb13a045.tar.gz python-dmidecode-1d501fb001a1ab201cd5fb38e1a011d3bb13a045.tar.xz python-dmidecode-1d501fb001a1ab201cd5fb38e1a011d3bb13a045.zip |
Take endinanness into consideration when compiling
Diffstat (limited to 'src/setup_common.py')
-rw-r--r-- | src/setup_common.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 + |