From: Rasmus Lerdorf Date: Fri, 5 Jun 2009 22:14:21 +0000 (+0000) Subject: There is no always_inline attribute in gcc2 X-Git-Tag: php-5.3.0RC3~32 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04f5d7c909b3ef3163972767893b7046940e3864;p=php There is no always_inline attribute in gcc2 --- diff --git a/Zend/zend.h b/Zend/zend.h index eaef7f182f..ca9243a819 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -367,7 +367,12 @@ struct _zval_struct { #define Z_SET_ISREF_TO(z, isref) Z_SET_ISREF_TO_P(&(z), isref) #if defined(__GNUC__) +#if __GNUC__ >= 3 #define zend_always_inline inline __attribute__((always_inline)) +#else +#define zend_always_inline inline +#endif + #elif defined(_MSC_VER) #define zend_always_inline __forceinline #else