cvs: ZendEngine2(PHP_5_3) / zend.h

"Rasmus Lerdorf" <[email protected]> Fri, 05 Jun 2009 22:14:21 -0000
Newsgroups gmane.comp.php.cvs.zend
Message-ID <cvsrasmus1244240061@cvsserver>
rasmus		Fri Jun  5 22:14:21 2009 UTC

  Modified files:              (Branch: PHP_5_3)
    /ZendEngine2	zend.h 
  Log:
  There is no always_inline attribute in gcc2
  
  
http://cvs.php.net/viewvc.cgi/ZendEngine2/zend.h?r1=1.293.2.11.2.9.2.35&r2=1.293.2.11.2.9.2.36&diff_format=u
Index: ZendEngine2/zend.h
diff -u ZendEngine2/zend.h:1.293.2.11.2.9.2.35 ZendEngine2/zend.h:1.293.2.11.2.9.2.36
--- ZendEngine2/zend.h:1.293.2.11.2.9.2.35	Mon Jun  1 17:51:53 2009
+++ ZendEngine2/zend.h	Fri Jun  5 22:14:21 2009
@@ -17,7 +17,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: zend.h,v 1.293.2.11.2.9.2.35 2009/06/01 17:51:53 nlopess Exp $ */
+/* $Id: zend.h,v 1.293.2.11.2.9.2.36 2009/06/05 22:14:21 rasmus Exp $ */
 
 #ifndef ZEND_H
 #define ZEND_H
@@ -367,7 +367,12 @@
 #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



-- 
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php