diff options
Diffstat (limited to 'numpy/core/setup.py')
| -rw-r--r-- | numpy/core/setup.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 589e42f2a..95a1118e1 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -259,6 +259,10 @@ def check_types(config_cmd, ext, build_dir): raise SystemError( "Cannot compile 'Python.h'. Perhaps you need to "\ "install python-dev|python-devel.") + res = config_cmd.check_header("endian.h") + if res: + private_defines.append(('HAVE_ENDIAN_H', 1)) + public_defines.append(('NPY_HAVE_ENDIAN_H', 1)) # Check basic types sizes for type in ('short', 'int', 'long'): |
