fix some inlines to make compilable with later versions of gcc

This commit is contained in:
christos 2014-01-20 00:05:57 +00:00
parent 513bcdce62
commit d04b9aaa55
2 changed files with 4 additions and 4 deletions

View File

@ -351,7 +351,7 @@ objc_write_use_common (struct objc_typed_stream *stream, unsigned long key)
}
}
static inline int
inline int
__objc_write_extension (struct objc_typed_stream *stream, unsigned char code)
{
if (code <= _B_VALUE)
@ -367,7 +367,7 @@ __objc_write_extension (struct objc_typed_stream *stream, unsigned char code)
}
}
inline int
static inline int
__objc_write_object (struct objc_typed_stream *stream, id object)
{
unsigned char buf = '\0';
@ -433,7 +433,7 @@ objc_write_object (struct objc_typed_stream *stream, id object)
}
}
inline int
static inline int
__objc_write_class (struct objc_typed_stream *stream, struct objc_class *class)
{
__objc_write_extension (stream, _BX_CLASS);

View File

@ -86,7 +86,7 @@ Method_t search_for_method_in_list (MethodList_t list, SEL op);
id nil_method (id, SEL);
/* Given a selector, return the proper forwarding implementation. */
inline
static inline
IMP
__objc_get_forward_imp (SEL sel)
{