diff options
| author | David Cournapeau <cournape@gmail.com> | 2009-11-05 03:49:32 +0000 |
|---|---|---|
| committer | David Cournapeau <cournape@gmail.com> | 2009-11-05 03:49:32 +0000 |
| commit | c8bc37463e7cc02bd7031d6df59292dc2edff62a (patch) | |
| tree | 6401912eb7f0069af8c232a8bc3cf58a2c89c66b /numpy/core | |
| parent | d98893274d821187d2a5a6b6bed44b9a8bd4be23 (diff) | |
| download | numpy-c8bc37463e7cc02bd7031d6df59292dc2edff62a.tar.gz | |
BUG: handle platform without complex support in numscons build.
Diffstat (limited to 'numpy/core')
| -rw-r--r-- | numpy/core/SConscript | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/SConscript b/numpy/core/SConscript index 0fa61d2ba..13f9b5f0d 100644 --- a/numpy/core/SConscript +++ b/numpy/core/SConscript @@ -235,6 +235,8 @@ if config.CheckHeader('complex.h'): if st: numpyconfig_sym.append(('DEFINE_NPY_HAVE_%s' % type2def(t), '#define NPY_HAVE_%s' % type2def(t))) + else: + numpyconfig_sym.append(('DEFINE_NPY_HAVE_%s' % type2def(t), '')) def check_prec(prec): flist = [f + prec for f in C99_COMPLEX_FUNCS] @@ -250,6 +252,8 @@ if config.CheckHeader('complex.h'): else: numpyconfig_sym.append(('DEFINE_NPY_USE_C99_COMPLEX', '')) + for t in C99_COMPLEX_TYPES: + numpyconfig_sym.append(('DEFINE_NPY_HAVE_%s' % type2def(t), '')) def visibility_define(): if config.CheckGCC4(): |
