Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/gcc4/libobjc fix some inlines to make compilable wi...



details:   https://anonhg.NetBSD.org/src/rev/fe0e893e57f8
branches:  trunk
changeset: 326131:fe0e893e57f8
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Jan 20 00:05:57 2014 +0000

description:
fix some inlines to make compilable with later versions of gcc

diffstat:

 gnu/dist/gcc4/libobjc/archive.c |  6 +++---
 gnu/dist/gcc4/libobjc/sendmsg.c |  2 +-
 2 files changed, 4 insertions(+), 4 deletions(-)

diffs (42 lines):

diff -r 366dc8391565 -r fe0e893e57f8 gnu/dist/gcc4/libobjc/archive.c
--- a/gnu/dist/gcc4/libobjc/archive.c   Sun Jan 19 23:27:30 2014 +0000
+++ b/gnu/dist/gcc4/libobjc/archive.c   Mon Jan 20 00:05:57 2014 +0000
@@ -351,7 +351,7 @@
     }
 }
 
-static inline int
+inline int
 __objc_write_extension (struct objc_typed_stream *stream, unsigned char code)
 {
   if (code <= _B_VALUE)
@@ -367,7 +367,7 @@
     }
 }
 
-inline int
+static inline int
 __objc_write_object (struct objc_typed_stream *stream, id object)
 {
   unsigned char buf = '\0';
@@ -433,7 +433,7 @@
     }
 }
 
-inline int
+static inline int
 __objc_write_class (struct objc_typed_stream *stream, struct objc_class *class)
 {
   __objc_write_extension (stream, _BX_CLASS);
diff -r 366dc8391565 -r fe0e893e57f8 gnu/dist/gcc4/libobjc/sendmsg.c
--- a/gnu/dist/gcc4/libobjc/sendmsg.c   Sun Jan 19 23:27:30 2014 +0000
+++ b/gnu/dist/gcc4/libobjc/sendmsg.c   Mon Jan 20 00:05:57 2014 +0000
@@ -86,7 +86,7 @@
 id nil_method (id, SEL);
 
 /* Given a selector, return the proper forwarding implementation. */
-inline
+static inline
 IMP
 __objc_get_forward_imp (SEL sel)
 {



Home | Main Index | Thread Index | Old Index