aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-31 15:29:22 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-12-31 15:29:22 +0000
commit26d2ba57cd396874716379555a85b53e20c446b5 (patch)
tree5d7943982ba47e5e0aae5fc1224546e204230303 /include
parent9296fff499bdc5aa17a7130463d413bf95723daa (diff)
Fix astobj to compile against GCC 2.95
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4621 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/astobj.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/asterisk/astobj.h b/include/asterisk/astobj.h
index 61d183f78..cc1968676 100755
--- a/include/asterisk/astobj.h
+++ b/include/asterisk/astobj.h
@@ -35,6 +35,10 @@ extern "C" {
#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. */