Files
macports-ports/lang/ruby/files/patch-c99.diff
Jeremy Huddleston Sequoia 3c11254f66 ruby: clang build fix
dev ack via email

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@80060 d073be05-634f-4543-b044-5fe20cf6d1d6
2011-07-03 16:59:39 +00:00

28 lines
539 B
Diff

--- lex.c.orig 2011-07-03 09:55:09.000000000 -0700
+++ lex.c 2011-07-03 09:55:52.000000000 -0700
@@ -10,7 +10,11 @@ struct kwtable {const char *name; int id
/* maximum key range = 50, duplicates = 0 */
#ifdef __GNUC__
+#ifdef __GNUC_STDC_INLINE__
+static inline
+#else
__inline
+#endif
#else
#ifdef __cplusplus
inline
@@ -66,8 +70,12 @@ hash (str, len)
}
#ifdef __GNUC__
+#ifdef __GNUC_STDC_INLINE__
+static inline
+#else
__inline
#endif
+#endif
struct kwtable *
rb_reserved_word (str, len)
register const char *str;