From 8dd9a7c7fb811f633c9e2959fa27c16c7a366f9c Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 2 Apr 2003 17:21:59 +0000 Subject: [PATCH] don't include the y.tab.h inside the yacc file --- openbox/parse.h | 4 +++- openbox/parse.yacc | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/openbox/parse.h b/openbox/parse.h index 3c649db1..9f9eda6d 100644 --- a/openbox/parse.h +++ b/openbox/parse.h @@ -2,7 +2,9 @@ #define __parse_h #include -#include "y.tab.h" +#ifndef NO_Y_H +# include "y.tab.h" +#endif typedef enum { TOKEN_REAL = REAL, diff --git a/openbox/parse.yacc b/openbox/parse.yacc index e9b469e0..8043c04a 100644 --- a/openbox/parse.yacc +++ b/openbox/parse.yacc @@ -1,5 +1,8 @@ %{ +#define NO_Y_H #include "parse.h" +#undef NO_Y_H + #ifdef HAVE_STDIO_H # include #endif -- 2.45.2