From: gfx Date: Tue, 17 Nov 2009 01:24:16 +0000 (+0900) Subject: Define "inline" if not provided (mouse.h) X-Git-Tag: 0.40_07~26 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d2410475e94e86db5340a7cd671c929a7c90e043;p=gitmo%2FMouse.git Define "inline" if not provided (mouse.h) --- diff --git a/mouse.h b/mouse.h index 0be0825..e607cf0 100644 --- a/mouse.h +++ b/mouse.h @@ -8,7 +8,8 @@ #include "ppport.h" -/* for portability */ +/* Portability stuff */ + #ifndef newSVpvs_share #define newSVpvs_share(s) Perl_newSVpvn_share(aTHX_ s, sizeof(s)-1, 0U) #endif @@ -38,6 +39,14 @@ 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 + +/* Mouse stuff */ + #define newAV_mortal() (AV*)sv_2mortal((SV*)newAV()) #define newHV_mortal() (HV*)sv_2mortal((SV*)newHV())