From e346e77540d17fbe07a5d6c6ddd07fdfd69a2c9d Mon Sep 17 00:00:00 2001 From: Juergen Keil Date: Tue, 17 Dec 2002 16:44:10 +0000 Subject: Keyword "__inline" is not available, when non-gcc compiler is used to compile xine-lib. C99 has "inline", GNU C "__inline". CVS patchset: 3575 CVS date: 2002/12/17 16:44:10 --- src/libfaad/common.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/libfaad/common.h b/src/libfaad/common.h index 9a220ed27..dfed6de81 100644 --- a/src/libfaad/common.h +++ b/src/libfaad/common.h @@ -16,7 +16,7 @@ ** along with this program; if not, write to the Free Software ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ** -** $Id: common.h,v 1.4 2002/12/16 18:59:56 miguelfreitas Exp $ +** $Id: common.h,v 1.5 2002/12/17 16:44:10 jkeil Exp $ **/ #ifndef __COMMON_H__ @@ -26,7 +26,13 @@ extern "C" { #endif +#if __STDC_VERSION__+0 >= 199901L +#define INLINE inline +#elif defined(__GNUC__) #define INLINE __inline +#else +#define INLINE +#endif #ifndef max #define max(a, b) (((a) > (b)) ? (a) : (b)) -- cgit v1.2.3