summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Keil <jkeil@users.sourceforge.net>2002-12-17 16:44:10 +0000
committerJuergen Keil <jkeil@users.sourceforge.net>2002-12-17 16:44:10 +0000
commite346e77540d17fbe07a5d6c6ddd07fdfd69a2c9d (patch)
tree9ad800667bc62b524974a64681933c3cefa725a2
parent21838dc5831c7455141c04c0627dee38d913ca50 (diff)
downloadxine-lib-e346e77540d17fbe07a5d6c6ddd07fdfd69a2c9d.tar.gz
xine-lib-e346e77540d17fbe07a5d6c6ddd07fdfd69a2c9d.tar.bz2
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
-rw-r--r--src/libfaad/common.h8
1 files changed, 7 insertions, 1 deletions
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))