[Asterisk-cvs] asterisk/include/asterisk astobj.h,1.4,1.5
markster at lists.digium.com
markster at lists.digium.com
Fri Dec 31 10:34:47 CST 2004
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv1318/include/asterisk
Modified Files:
astobj.h
Log Message:
Fix astobj to compile against GCC 2.95
Index: astobj.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/astobj.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- astobj.h 29 Dec 2004 23:11:51 -0000 1.4
+++ astobj.h 31 Dec 2004 15:29:22 -0000 1.5
@@ -35,6 +35,10 @@
#define ASTOBJ_FLAG_DELME (1 << 0) /* Object has been deleted, remove on last unref */
#define ASTOBJ_FLAG_MARKED (1 << 1) /* Object has been marked for possible deletion */
+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
+#define __builtin_expect(exp, c) (exp)
+#endif
+
/* C++ is simply a syntactic crutch for those who cannot think for themselves
in an object oriented way. */
More information about the svn-commits
mailing list