summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2013-10-06 09:54:48 -0600
committerCharles Harris <charlesr.harris@gmail.com>2013-10-06 09:54:48 -0600
commit15bb858cfa01ed562a747c6c7f914e630d0ecf03 (patch)
tree26aebd9f8a44468c3198e5c6cfb0ee40bfec72f3
parent7457f156bfbad591397dee780eee275f8f1fe2ce (diff)
downloadnumpy-15bb858cfa01ed562a747c6c7f914e630d0ecf03.tar.gz
BUG: Include sunmath.h in npy_math.h when __SUNPRO_CC defined.
The include is needed for isinf. Closes #3871.
-rw-r--r--numpy/core/include/numpy/npy_math.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/core/include/numpy/npy_math.h b/numpy/core/include/numpy/npy_math.h
index 537a63ee4..094286181 100644
--- a/numpy/core/include/numpy/npy_math.h
+++ b/numpy/core/include/numpy/npy_math.h
@@ -6,11 +6,15 @@ extern "C" {
#endif
#include <math.h>
+#ifdef __SUNPRO_CC
+#include <sunmath.h>
+#endif
#ifdef HAVE_NPY_CONFIG_H
#include <npy_config.h>
#endif
#include <numpy/npy_common.h>
+
/*
* NAN and INFINITY like macros (same behavior as glibc for NAN, same as C99
* for INFINITY)