X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=mouse.h;h=74c46f0243ca4c666cd210621eabc56d51488299;hb=fc65056916e1380327d40cce9e4fe06e4a97eae3;hp=2c57da0895f21dc2a4b2bc00c7791ed97a01609f;hpb=d6ceb359d08b474a9f0911c7d7c3fd319761b0ae;p=gitmo%2FMouse.git diff --git a/mouse.h b/mouse.h index 2c57da0..74c46f0 100644 --- a/mouse.h +++ b/mouse.h @@ -44,11 +44,13 @@ AV* mouse_mro_get_linear_isa(pTHX_ HV* const stash); #endif /* !no_mro_get_linear_isa */ #endif /* mro_get_package_gen */ -#if !defined(__GNUC__) -# if (!defined(__cplusplus__) || !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)) && !defined(inline) -# define inline /* nothing */ -# endif -#endif +#ifndef STATIC_INLINE /* from 5.13.4 */ +# if defined(__GNUC__) || defined(__cplusplus__) || (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) +# define STATIC_INLINE static inline +# else +# define STATIC_INLINE static +# endif +#endif /* STATIC_INLINE */ /* Mouse stuff */