aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-04 01:50:59 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-04 01:50:59 +0000
commit7d87871baafe0dbf42c71eebbb449aac6fde730d (patch)
treec26684703b7ebdca1a1bee6f2b355bb03183c937
parent05c84efdc4a59280cff64c6dbd7b0ca58a9e4aca (diff)
For my next trick I will make these work with what our autoconf header file gives us.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@115279 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--include/asterisk/compiler.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/asterisk/compiler.h b/include/asterisk/compiler.h
index 0955b8c8f..618950017 100644
--- a/include/asterisk/compiler.h
+++ b/include/asterisk/compiler.h
@@ -23,37 +23,37 @@
#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