diff --git a/gcc/objc/Object.m b/gcc/objc/Object.m index 84c66132f4a..39aab8c29aa 100644 --- a/gcc/objc/Object.m +++ b/gcc/objc/Object.m @@ -23,15 +23,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License. */ -#include -#include -#include -#include +#include "objc/Object.h" +#include "objc/Protocol.h" +#include "objc/objc-api.h" -extern int strlen(const char *); -extern int strcmp(const char *, const char *); -extern int read(int, void *, int); -extern int write(int, const void *, int); extern int errno; #define MAX_CLASS_NAME_LEN 256 diff --git a/gcc/objc/Protocol.m b/gcc/objc/Protocol.m index f4999bc8e44..38963d0d4bf 100644 --- a/gcc/objc/Protocol.m +++ b/gcc/objc/Protocol.m @@ -23,8 +23,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License. */ -#include -#include +#include "objc/Protocol.h" +#include "objc/objc-api.h" /* Method description list */ struct objc_method_description_list {