commit 9f2e3f1c43c67f3ae3cca01bced10b670600c88c
Author: Hiltjo Posthuma <[email protected]>
AuthorDate: Fri Jul 17 20:29:28 2015 +0200
Commit: Roberto E. Vargas Caballero <[email protected]>
CommitDate: Fri Jul 17 20:58:49 2015 +0200
make fp of type FILE * and use needed includes
diff --git a/cc1/cc1.h b/cc1/cc1.h
index 6a9d9aa..5a18e21 100644
--- a/cc1/cc1.h
+++ b/cc1/cc1.h
@@ -73,7 +73,7 @@ struct yystype {
struct input {
char *fname;
- void *fp;
+ FILE *fp;
char *line, *begin, *p;
struct input *next;
unsigned short nline;
diff --git a/cc1/decl.c b/cc1/decl.c
index 9d6ff98..ded6ee4 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -1,6 +1,7 @@
#include <inttypes.h>
#include <setjmp.h>
+#include <stdio.h>
#include <string.h>
#include "../inc/sizes.h"
diff --git a/cc1/symbol.c b/cc1/symbol.c
index 57eb7ac..c869cd6 100644
--- a/cc1/symbol.c
+++ b/cc1/symbol.c
@@ -1,5 +1,6 @@
#include <inttypes.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>