mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-09 11:28:25 +00:00
For my next trick I will make these work with what our autoconf header file gives us.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@115279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -23,37 +23,37 @@
|
|||||||
#ifndef _ASTERISK_COMPILER_H
|
#ifndef _ASTERISK_COMPILER_H
|
||||||
#define _ASTERISK_COMPILER_H
|
#define _ASTERISK_COMPILER_H
|
||||||
|
|
||||||
#if HAVE_ATTRIBUTE_always_inline
|
#ifdef HAVE_ATTRIBUTE_always_inline
|
||||||
#define force_inline __attribute__((always_inline)) inline
|
#define force_inline __attribute__((always_inline)) inline
|
||||||
#else
|
#else
|
||||||
#define force_inline inline
|
#define force_inline inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_ATTRIBUTE_pure
|
#ifdef HAVE_ATTRIBUTE_pure
|
||||||
#define attribute_pure __attribute__((pure))
|
#define attribute_pure __attribute__((pure))
|
||||||
#else
|
#else
|
||||||
#define attribute_pure
|
#define attribute_pure
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_ATTRIBUTE_const
|
#ifdef HAVE_ATTRIBUTE_const
|
||||||
#define attribute_const __attribute__((const))
|
#define attribute_const __attribute__((const))
|
||||||
#else
|
#else
|
||||||
#define attribute_const
|
#define attribute_const
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_ATTRIBUTE_unused
|
#ifdef HAVE_ATTRIBUTE_unused
|
||||||
#define attribute_unused __attribute__((unused))
|
#define attribute_unused __attribute__((unused))
|
||||||
#else
|
#else
|
||||||
#define attribute_unused
|
#define attribute_unused
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_ATTRIBUTE_malloc
|
#ifdef HAVE_ATTRIBUTE_malloc
|
||||||
#define attribute_malloc __attribute__((malloc))
|
#define attribute_malloc __attribute__((malloc))
|
||||||
#else
|
#else
|
||||||
#define attribute_malloc
|
#define attribute_malloc
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_ATTRIBUTE_deprecated
|
#ifdef HAVE_ATTRIBUTE_deprecated
|
||||||
#define attribute_deprecated __attribute__((deprecated))
|
#define attribute_deprecated __attribute__((deprecated))
|
||||||
#else
|
#else
|
||||||
#define attribute_deprecated
|
#define attribute_deprecated
|
||||||
|
|||||||
Reference in New Issue
Block a user