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