old compiler compatibility (again...)
authorKevin P. Fleming <kpfleming@digium.com>
Fri, 4 Nov 2005 15:23:32 +0000 (15:23 +0000)
committerKevin P. Fleming <kpfleming@digium.com>
Fri, 4 Nov 2005 15:23:32 +0000 (15:23 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6960 65c4cc65-6c06-0410-ace0-fbb531ad65f3

ChangeLog
include/asterisk/compiler.h

index 59b699f..e9e0037 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-04  Kevin P. Fleming  <kpfleming@digium.com>
+
+       * include/asterisk/compiler.h: don't try to use always_inline on old compilers
+
 2005-11-03  Russell Bryant  <russell@digium.com>
 
        * res/res_agi.c: initialize buffer for result so that the contents are always valid in the response to GET FULL VARIABLE
index 62564c9..24f6907 100755 (executable)
 
 #if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
 #define __builtin_expect(exp, c) (exp)
-#endif
-
-#ifdef __GNUC__
-#define force_inline inline __attribute__((always_inline))
-#else
 #define force_inline inline
+#else
+#define force_inline inline __attribute__((always_inline))
 #endif
 
 #endif /* _ASTERISK_COMPILER_H */