dect
/
asterisk
Archived
13
0
Fork 0

old compiler compatibility (again...)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6960 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
kpfleming 2005-11-04 15:23:32 +00:00
parent 2786f77f14
commit 909e56f0eb
2 changed files with 6 additions and 5 deletions

View File

@ -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

View File

@ -25,12 +25,9 @@
#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 */