summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numpy/core/include/numpy/npy_common.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/numpy/core/include/numpy/npy_common.h b/numpy/core/include/numpy/npy_common.h
index 0f0b6137b..145fe2142 100644
--- a/numpy/core/include/numpy/npy_common.h
+++ b/numpy/core/include/numpy/npy_common.h
@@ -6,10 +6,12 @@
#if defined(_MSC_VER)
#define NPY_INLINE __inline
-#elif defined(inline)
- #define NPY_INLINE inline
-#elif defined(__inline__)
- #define NPY_INLINE __inline__
+#elif defined(__GNUC__)
+ #if defined(__STRICT_ANSI__)
+ #define NPY_INLINE __inline__
+ #else
+ #define NPY_INLINE inline
+ #endif
#else
#define NPY_INLINE
#endif