diff options
author | Lawrence D'Oliveiro <from-blender@geek-central.gen.nz> | 2014-01-31 16:20:06 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-01-31 16:20:26 +0400 |
commit | eeefbbcc78ff308c06b32b5887be0faca781c3c6 (patch) | |
tree | 89de54b2f2093143ae868cf4c3639ca69def3477 | |
parent | 9896508e14d220fd86567a4dd4e596af66eace24 (diff) |
SCons: Simplify Endian determination
Differential Revision: https://developer.blender.org/D252
-rw-r--r-- | build_files/scons/tools/btools.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/build_files/scons/tools/btools.py b/build_files/scons/tools/btools.py index 9ab5fce0dbd..744896cef2d 100644 --- a/build_files/scons/tools/btools.py +++ b/build_files/scons/tools/btools.py @@ -63,19 +63,8 @@ def get_hash(): return build_hash -# copied from: http://www.scons.org/wiki/AutoconfRecipes def checkEndian(): - import struct - array = struct.pack('cccc', '\x01', '\x02', '\x03', '\x04') - i = struct.unpack('i', array) - # Little Endian - if i == struct.unpack('<i', array): - return "little" - # Big Endian - elif i == struct.unpack('>i', array): - return "big" - else: - raise Exception("cant find endian") + return sys.byteorder # This is used in creating the local config directories |