summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-08 06:25:15 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>2004-04-08 06:25:15 +0000
commit13a8d3ea289f8937d751553c0bbf59372774714b (patch)
treecb4233927a8d38abb544c50d506ef32eefb2f044
parent65304d76b458bc4fa8bc16f9f50ae1c3eb6b4d5b (diff)
downloadgcc-13a8d3ea289f8937d751553c0bbf59372774714b.tar.gz
* plural.y: don't assume that the inline keyword can be used.
* gettextP.h: likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-3_4-branch@80502 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--intl/ChangeLog5
-rw-r--r--intl/gettextP.h5
-rw-r--r--intl/plural.y5
3 files changed, 15 insertions, 0 deletions
diff --git a/intl/ChangeLog b/intl/ChangeLog
index caf88353367..257071ac77a 100644
--- a/intl/ChangeLog
+++ b/intl/ChangeLog
@@ -1,3 +1,8 @@
+2004-04-07 Joe Buck <jbuck@welsh-buck.org>
+
+ * plural.y: don't assume that the inline keyword can be used.
+ * gettextP.h: likewise.
+
2003-07-07 Zack Weinberg <zack@codesourcery.com>
* README: Update.
diff --git a/intl/gettextP.h b/intl/gettextP.h
index 82135aa0f42..78372d03928 100644
--- a/intl/gettextP.h
+++ b/intl/gettextP.h
@@ -67,6 +67,11 @@
# include <byteswap.h>
# define SWAP(i) bswap_32 (i)
#else
+
+#ifndef __GNUC__
+#define inline /* nothing: don't inline if the compiler is not GCC */
+#endif
+
static inline nls_uint32
SWAP (i)
nls_uint32 i;
diff --git a/intl/plural.y b/intl/plural.y
index 616b7c11a21..99849e53202 100644
--- a/intl/plural.y
+++ b/intl/plural.y
@@ -54,6 +54,11 @@
%{
/* Prototypes for local functions. */
+
+#ifndef __GNUC__
+#define inline /* nothing: don't inline if the compiler is not GCC */
+#endif
+
static struct expression *new_exp PARAMS ((int nargs, enum operator op,
struct expression * const *args));
static inline struct expression *new_exp_0 PARAMS ((enum operator op));