summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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