diff options
| author | rgommers <ralf.gommers@googlemail.com> | 2010-07-31 10:16:46 +0000 |
|---|---|---|
| committer | rgommers <ralf.gommers@googlemail.com> | 2010-07-31 10:16:46 +0000 |
| commit | 66668fa2045317e13f694ef7110d23fb8aeedf4c (patch) | |
| tree | 2607063859678ed7c125b14ef06f61d2749b7021 | |
| parent | 32c90e187c77a704aba58e935f2015917993c02f (diff) | |
| download | numpy-66668fa2045317e13f694ef7110d23fb8aeedf4c.tar.gz | |
BUG: fix numscons build issue introduced in r8541.
backport of r8564
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.
| -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 3ad65d7cd..788041d20 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) |
