diff options
author | rgommers <ralf.gommers@googlemail.com> | 2010-07-31 10:13:56 +0000 |
---|---|---|
committer | rgommers <ralf.gommers@googlemail.com> | 2010-07-31 10:13:56 +0000 |
commit | d7bf2b58c6cd351a5a9400391ba5060ff669de4f (patch) | |
tree | d7f9f82984e810a62315cf84c43cd08bea0b32cd /numpy | |
parent | 7225d6d9c36c2df1599960935938f5c46549268d (diff) | |
download | numpy-d7bf2b58c6cd351a5a9400391ba5060ff669de4f.tar.gz |
BUG: fix numscons build issue introduced in r8541.
The problem was that if endian.h was not detected, @DEFINE_NPY_HAVE_ENDIAN_H@
was still present in _numpyconfig.h, causing compilation to fail.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/core/SConscript | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript index 732374f8f..25583a59c 100644 --- a/numpy/core/SConscript +++ b/numpy/core/SConscript @@ -81,6 +81,8 @@ Configuration error log says: \n\n%s""" % ''.join(errmsg) st = config.CheckHeader("endian.h") if st: numpyconfig_sym.append(('DEFINE_NPY_HAVE_ENDIAN_H', '#define NPY_HAVE_ENDIAN_H 1')) +else: + numpyconfig_sym.append(('DEFINE_NPY_HAVE_ENDIAN_H', '')) def check_type(type, include = None): st = config.CheckTypeSize(type, includes = include) |