![]() |
Home page |
Mailing list |
Docs
Asterisk developer's documentation :: Codename Pineapple
compiler.h
Go to the documentation of this file.
00001 /* 00002 * Asterisk -- An open source telephony toolkit. 00003 * 00004 * Copyright (C) 1999 - 2005, Digium, Inc. 00005 * 00006 * Mark Spencer <markster@digium.com> 00007 * 00008 * See http://www.asterisk.org for more information about 00009 * the Asterisk project. Please do not directly contact 00010 * any of the maintainers of this project for assistance; 00011 * the project provides a web site, mailing lists and IRC 00012 * channels for your use. 00013 * 00014 * This program is free software, distributed under the terms of 00015 * the GNU General Public License Version 2. See the LICENSE file 00016 * at the top of the source tree. 00017 */ 00018 00019 /*! \file 00020 * \brief Compiler-specific macros and other items 00021 */ 00022 00023 #ifndef _ASTERISK_COMPILER_H 00024 #define _ASTERISK_COMPILER_H 00025 00026 #if HAVE_ATTRIBUTE_always_inline 00027 #define force_inline __attribute__((always_inline)) inline 00028 #else 00029 #define force_inline inline 00030 #endif 00031 00032 #if HAVE_ATTRIBUTE_pure 00033 #define attribute_pure __attribute__((pure)) 00034 #else 00035 #define attribute_pure 00036 #endif 00037 00038 #if HAVE_ATTRIBUTE_const 00039 #define attribute_const __attribute__((const)) 00040 #else 00041 #define attribute_const 00042 #endif 00043 00044 #if HAVE_ATTRIBUTE_unused 00045 #define attribute_unused __attribute__((unused)) 00046 #else 00047 #define attribute_unused 00048 #endif 00049 00050 #if HAVE_ATTRIBUTE_malloc 00051 #define attribute_malloc __attribute__((malloc)) 00052 #else 00053 #define attribute_malloc 00054 #endif 00055 00056 #endif /* _ASTERISK_COMPILER_H */