fix some inlines to make compilable with later versions of gcc
This commit is contained in:
parent
513bcdce62
commit
d04b9aaa55
6
gnu/dist/gcc4/libobjc/archive.c
vendored
6
gnu/dist/gcc4/libobjc/archive.c
vendored
@ -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);
|
||||
|
2
gnu/dist/gcc4/libobjc/sendmsg.c
vendored
2
gnu/dist/gcc4/libobjc/sendmsg.c
vendored
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user