diff options
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/Make-lang.in | 2 | ||||
-rw-r--r-- | gcc/objc/objc-parse.c | 9 | ||||
-rw-r--r-- | gcc/objc/objc-parse.y | 9 |
3 files changed, 3 insertions, 17 deletions
diff --git a/gcc/objc/Make-lang.in b/gcc/objc/Make-lang.in index 4b41c9a1433..ebde9d0101b 100644 --- a/gcc/objc/Make-lang.in +++ b/gcc/objc/Make-lang.in @@ -71,7 +71,7 @@ cc1obj$(exeext): $(P) $(OBJC_OBJS) $(OBJS) $(LIBDEPS) objc-parse.o : $(srcdir)/objc/objc-parse.c \ $(CONFIG_H) $(TREE_H) \ $(srcdir)/c-lex.h $(srcdir)/c-tree.h $(srcdir)/input.h \ - $(srcdir)/flags.h $(srcdir)/output.h $(srcdir)/objc/objc-act.h + $(srcdir)/flags.h $(srcdir)/output.h $(srcdir)/objc/objc-act.h system.h $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) -I$(srcdir)/objc \ -c $(srcdir)/objc/objc-parse.c diff --git a/gcc/objc/objc-parse.c b/gcc/objc/objc-parse.c index cf3f3f70804..abb9099469a 100644 --- a/gcc/objc/objc-parse.c +++ b/gcc/objc/objc-parse.c @@ -68,9 +68,7 @@ #line 33 "objc-parse.y" #include "config.h" - -#include <stdio.h> -#include <errno.h> +#include "system.h" #include <setjmp.h> #include "tree.h" @@ -81,7 +79,6 @@ #include "output.h" #ifdef MULTIBYTE_CHARS -#include <stdlib.h> #include <locale.h> #endif @@ -91,10 +88,6 @@ definition here. */ char *language_string = "GNU Obj-C"; -#ifndef errno -extern int errno; -#endif - /* Like YYERROR but do call yyerror. */ #define YYERROR1 { yyerror ("syntax error"); YYERROR; } diff --git a/gcc/objc/objc-parse.y b/gcc/objc/objc-parse.y index 807ad5a952c..c216d438ae1 100644 --- a/gcc/objc/objc-parse.y +++ b/gcc/objc/objc-parse.y @@ -32,9 +32,7 @@ Boston, MA 02111-1307, USA. */ %{ #include "config.h" - -#include <stdio.h> -#include <errno.h> +#include "system.h" #include <setjmp.h> #include "tree.h" @@ -45,7 +43,6 @@ Boston, MA 02111-1307, USA. */ #include "output.h" #ifdef MULTIBYTE_CHARS -#include <stdlib.h> #include <locale.h> #endif @@ -55,10 +52,6 @@ Boston, MA 02111-1307, USA. */ definition here. */ char *language_string = "GNU Obj-C"; -#ifndef errno -extern int errno; -#endif - /* Like YYERROR but do call yyerror. */ #define YYERROR1 { yyerror ("syntax error"); YYERROR; } |