Commit cb945502 authored by Robert Bradshaw's avatar Robert Bradshaw

Merge pull request #211 from Juntalis/master

Non-Wrapped Inline Declaration Breaking Compatibility with C89 Compilers
parents 332a5263 87b8a498
...@@ -262,10 +262,23 @@ ...@@ -262,10 +262,23 @@
#define __Pyx_DOCSTR(n) (n) #define __Pyx_DOCSTR(n) (n)
#endif #endif
/* inline attribute */
#ifndef CYTHON_INLINE
#if defined(__GNUC__)
#define CYTHON_INLINE __inline__
#elif defined(_MSC_VER)
#define CYTHON_INLINE __inline
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define CYTHON_INLINE inline
#else
#define CYTHON_INLINE
#endif
#endif
#ifdef NAN #ifdef NAN
#define __PYX_NAN() ((float) NAN) #define __PYX_NAN() ((float) NAN)
#else #else
static inline float __PYX_NAN() { static CYTHON_INLINE float __PYX_NAN() {
/* Initialize NaN. The sign is irrelevant, an exponent with all bits 1 and /* Initialize NaN. The sign is irrelevant, an exponent with all bits 1 and
a nonzero mantissa means NaN. If the first bit in the mantissa is 1, it is a nonzero mantissa means NaN. If the first bit in the mantissa is 1, it is
a quiet NaN. */ a quiet NaN. */
...@@ -277,19 +290,6 @@ static inline float __PYX_NAN() { ...@@ -277,19 +290,6 @@ static inline float __PYX_NAN() {
/////////////// UtilityFunctionPredeclarations.proto /////////////// /////////////// UtilityFunctionPredeclarations.proto ///////////////
/* inline attribute */
#ifndef CYTHON_INLINE
#if defined(__GNUC__)
#define CYTHON_INLINE __inline__
#elif defined(_MSC_VER)
#define CYTHON_INLINE __inline
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
#define CYTHON_INLINE inline
#else
#define CYTHON_INLINE
#endif
#endif
/* unused attribute */ /* unused attribute */
#ifndef CYTHON_UNUSED #ifndef CYTHON_UNUSED
# if defined(__GNUC__) # if defined(__GNUC__)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment