summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2011-02-07 13:57:05 +0900
committerDavid Cournapeau <cournape@gmail.com>2011-02-07 13:57:39 +0900
commit13c83fd3558cc366233f0522b2922f5ee95e8c4a (patch)
treeee558a0d92aac0fdaa6ac7f6407e5801273e0735 /numpy
parentc5c6b498509276223b7fdc04b9bd3d36fb74aa85 (diff)
downloadnumpy-13c83fd3558cc366233f0522b2922f5ee95e8c4a.tar.gz
BUG: tweak NPY_INLINE definition to allow compilation in gcc -pendantic mode.
Diffstat (limited to 'numpy')
-rw-r--r--numpy/core/include/numpy/npy_common.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/numpy/core/include/numpy/npy_common.h b/numpy/core/include/numpy/npy_common.h
index 998cfdaef..0f0b6137b 100644
--- a/numpy/core/include/numpy/npy_common.h
+++ b/numpy/core/include/numpy/npy_common.h
@@ -6,8 +6,10 @@
#if defined(_MSC_VER)
#define NPY_INLINE __inline
-#elif defined(__GNUC__)
+#elif defined(inline)
#define NPY_INLINE inline
+#elif defined(__inline__)
+ #define NPY_INLINE __inline__
#else
#define NPY_INLINE
#endif