don't include the y.tab.h inside the yacc file
Dana Jansens danakj@orodu.net
2 files changed,
6 insertions(+),
1 deletions(-)
M
openbox/parse.h
→
openbox/parse.h
@@ -2,7 +2,9 @@ #ifndef __parse_h
#define __parse_h #include <glib.h> -#include "y.tab.h" +#ifndef NO_Y_H +# include "y.tab.h" +#endif typedef enum { TOKEN_REAL = REAL,
M
openbox/parse.yacc
→
openbox/parse.yacc
@@ -1,5 +1,8 @@
%{ +#define NO_Y_H #include "parse.h" +#undef NO_Y_H + #ifdef HAVE_STDIO_H # include <stdio.h> #endif