projects
/
asterisk/asterisk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71ec46b
)
Fix astobj to compile against GCC 2.95
author
Mark Spencer
<markster@digium.com>
Fri, 31 Dec 2004 15:29:22 +0000
(15:29 +0000)
committer
Mark Spencer
<markster@digium.com>
Fri, 31 Dec 2004 15:29:22 +0000
(15:29 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4621
65c4cc65
-6c06-0410-ace0-
fbb531ad65f3
include/asterisk/astobj.h
patch
|
blob
|
history
diff --git
a/include/asterisk/astobj.h
b/include/asterisk/astobj.h
index
61d183f
..
cc19686
100755
(executable)
--- 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. */