Commit 7f7f7b18 authored by Lisandro Dalcin's avatar Lisandro Dalcin

Fix definition CYTHON_FALLTHROUGH in module setup utility code

parent 206e95f2
...@@ -512,16 +512,25 @@ ...@@ -512,16 +512,25 @@
#define CYTHON_FALLTHROUGH [[fallthrough]] #define CYTHON_FALLTHROUGH [[fallthrough]]
#elif __has_cpp_attribute(clang::fallthrough) #elif __has_cpp_attribute(clang::fallthrough)
#define CYTHON_FALLTHROUGH [[clang::fallthrough]] #define CYTHON_FALLTHROUGH [[clang::fallthrough]]
#elif __has_cpp_attribute(gnu::fallthrough)
#define CYTHON_FALLTHROUGH [[gnu::fallthrough]]
#endif #endif
#endif #endif
#ifndef CYTHON_FALLTHROUGH #ifndef CYTHON_FALLTHROUGH
#if (defined(__GNUC__) || defined(__clang__)) && __has_attribute(fallthrough) #if __has_attribute(fallthrough)
#define CYTHON_FALLTHROUGH __attribute__((fallthrough)) #define CYTHON_FALLTHROUGH __attribute__((fallthrough))
#else #else
#define CYTHON_FALLTHROUGH #define CYTHON_FALLTHROUGH
#endif #endif
#endif #endif
#if defined(__clang__ ) && defined(__apple_build_version__)
#if __apple_build_version__ < 7000000 /* Xcode < 7.0 */
#undef CYTHON_FALLTHROUGH
#define CYTHON_FALLTHROUGH
#endif
#endif
#endif #endif
/////////////// CInitCode /////////////// /////////////// CInitCode ///////////////
......
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