aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/compiler.h
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-24 22:50:07 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-06-24 22:50:07 +0000
commitb382b968ab7b4b011070c3df449d72ae852c9869 (patch)
tree50a9a4abdd0dbc7c6cc8e80129c958a9f3581290 /include/asterisk/compiler.h
parent889ce1c0e880478f7269c0751675e8e69ba6ffc0 (diff)
add new header files
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6009 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/compiler.h')
-rwxr-xr-xinclude/asterisk/compiler.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/asterisk/compiler.h b/include/asterisk/compiler.h
new file mode 100755
index 000000000..137e9e146
--- /dev/null
+++ b/include/asterisk/compiler.h
@@ -0,0 +1,19 @@
+/*
+ * Asterisk -- A telephony toolkit for Linux.
+ *
+ * Compiler-specific macros and other items
+ *
+ * Copyright (C) 2005, Digium, Inc.
+ *
+ * This program is free software, distributed under the terms of
+ * the GNU General Public License
+ */
+
+#ifndef _ASTERISK_COMPILER_H
+#define _ASTERISK_COMPILER_H
+
+#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
+#define __builtin_expect(exp, c) (exp)
+#endif
+
+#endif /* _ASTERISK_COMPILER_H */