summaryrefslogtreecommitdiff
path: root/include/asterisk/astobj.h
diff options
context:
space:
mode:
authorKevin P. Fleming <kpfleming@digium.com>2005-06-24 22:45:15 +0000
committerKevin P. Fleming <kpfleming@digium.com>2005-06-24 22:45:15 +0000
commit3e44b65090f3f2b5b3e0c1e8e11bf34a1b01afc8 (patch)
tree3f0f4640d39f272360a860fb49ea3a284b99f757 /include/asterisk/astobj.h
parent3ddc33f6743c21878afc0632f66eb1c7b880326e (diff)
split up string/time functions into separate header files
make more LOW_MEMORY optimizations, and ensure that a non-inline version of each inlinable function is always available (for external modules) move compiler-specific stuff into a separate header file git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6008 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/astobj.h')
-rwxr-xr-xinclude/asterisk/astobj.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/include/asterisk/astobj.h b/include/asterisk/astobj.h
index ac1b280d7..96876ba18 100755
--- a/include/asterisk/astobj.h
+++ b/include/asterisk/astobj.h
@@ -15,7 +15,9 @@
#define _ASTERISK_ASTOBJ_H
#include <string.h>
+
#include "asterisk/lock.h"
+#include "asterisk/compiler.h"
/*! \file
* \brief A set of macros implementing objects and containers.
@@ -84,10 +86,6 @@ extern "C" {
#define ASTOBJ_FLAG_MARKED (1 << 0) /* Object has been marked for future operation */
-#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. */