[asterisk-commits] russell: trunk r38464 - /trunk/include/asterisk/compiler.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jul 28 16:30:18 MST 2006


Author: russell
Date: Fri Jul 28 18:30:18 2006
New Revision: 38464

URL: http://svn.digium.com/view/asterisk?rev=38464&view=rev
Log:
the pure attribute was not implemented before gcc 2.96.  Since we have this
version check here anwyay, define attribute_pure to be empty if it's an earlier
version.

Modified:
    trunk/include/asterisk/compiler.h

Modified: trunk/include/asterisk/compiler.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/compiler.h?rev=38464&r1=38463&r2=38464&view=diff
==============================================================================
--- trunk/include/asterisk/compiler.h (original)
+++ trunk/include/asterisk/compiler.h Fri Jul 28 18:30:18 2006
@@ -26,11 +26,11 @@
 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
 #define __builtin_expect(exp, c) (exp)
 #define force_inline inline
+#define attribute_pure
 #else
 #define force_inline inline __attribute__((always_inline))
+#define attribute_pure __attribute__((pure))
 #endif
-
-#define attribute_pure __attribute__((pure))
 
 #define attribute_const __attribute__((const))
 



More information about the asterisk-commits mailing list