2005-06-24 22:50:07 +00:00
|
|
|
/*
|
2005-08-30 18:32:10 +00:00
|
|
|
* Asterisk -- An open source telephony toolkit.
|
2005-06-24 22:50:07 +00:00
|
|
|
*
|
2005-08-30 18:32:10 +00:00
|
|
|
* Copyright (C) 1999 - 2005, Digium, Inc.
|
|
|
|
*
|
|
|
|
* Mark Spencer <markster@digium.com>
|
2005-06-24 22:50:07 +00:00
|
|
|
*
|
2005-08-30 18:32:10 +00:00
|
|
|
* See http://www.asterisk.org for more information about
|
|
|
|
* the Asterisk project. Please do not directly contact
|
|
|
|
* any of the maintainers of this project for assistance;
|
|
|
|
* the project provides a web site, mailing lists and IRC
|
|
|
|
* channels for your use.
|
2005-06-24 22:50:07 +00:00
|
|
|
*
|
|
|
|
* This program is free software, distributed under the terms of
|
2005-08-30 18:32:10 +00:00
|
|
|
* the GNU General Public License Version 2. See the LICENSE file
|
|
|
|
* at the top of the source tree.
|
|
|
|
*/
|
|
|
|
|
2005-10-24 20:12:06 +00:00
|
|
|
/*! \file
|
|
|
|
* \brief Compiler-specific macros and other items
|
2005-06-24 22:50:07 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASTERISK_COMPILER_H
|
|
|
|
#define _ASTERISK_COMPILER_H
|
|
|
|
|
|
|
|
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
|
|
|
|
#define __builtin_expect(exp, c) (exp)
|
2005-11-01 20:09:09 +00:00
|
|
|
#define force_inline inline
|
2006-07-28 23:30:18 +00:00
|
|
|
#define attribute_pure
|
2005-11-04 15:23:32 +00:00
|
|
|
#else
|
|
|
|
#define force_inline inline __attribute__((always_inline))
|
2006-07-28 22:50:54 +00:00
|
|
|
#define attribute_pure __attribute__((pure))
|
2006-07-28 23:30:18 +00:00
|
|
|
#endif
|
2006-07-28 22:50:54 +00:00
|
|
|
|
|
|
|
#define attribute_const __attribute__((const))
|
|
|
|
|
2005-06-24 22:50:07 +00:00
|
|
|
#endif /* _ASTERISK_COMPILER_H */
|