]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
For my next trick I will make these work with what our autoconf header file gives us.
authorJoshua Colp <jcolp@digium.com>
Sun, 4 May 2008 01:50:59 +0000 (01:50 +0000)
committerJoshua Colp <jcolp@digium.com>
Sun, 4 May 2008 01:50:59 +0000 (01:50 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@115279 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/compiler.h

index 0955b8c8f290ac535d6144d0941ef5316da23d9d..61895001774411d324ca8529eaaebe1b0062b80f 100644 (file)
 #ifndef _ASTERISK_COMPILER_H
 #define _ASTERISK_COMPILER_H
 
-#if HAVE_ATTRIBUTE_always_inline
+#ifdef HAVE_ATTRIBUTE_always_inline
 #define force_inline __attribute__((always_inline)) inline
 #else
 #define force_inline inline
 #endif
 
-#if HAVE_ATTRIBUTE_pure
+#ifdef HAVE_ATTRIBUTE_pure
 #define attribute_pure __attribute__((pure))
 #else
 #define attribute_pure
 #endif
 
-#if HAVE_ATTRIBUTE_const
+#ifdef HAVE_ATTRIBUTE_const
 #define attribute_const __attribute__((const))
 #else
 #define attribute_const
 #endif
 
-#if HAVE_ATTRIBUTE_unused
+#ifdef HAVE_ATTRIBUTE_unused
 #define attribute_unused __attribute__((unused))
 #else
 #define attribute_unused
 #endif
 
-#if HAVE_ATTRIBUTE_malloc
+#ifdef HAVE_ATTRIBUTE_malloc
 #define attribute_malloc __attribute__((malloc))
 #else
 #define attribute_malloc
 #endif
 
-#if HAVE_ATTRIBUTE_deprecated
+#ifdef HAVE_ATTRIBUTE_deprecated
 #define attribute_deprecated __attribute__((deprecated))
 #else
 #define attribute_deprecated