From: Dana Jansens Date: Wed, 2 Apr 2003 17:21:59 +0000 (+0000) Subject: don't include the y.tab.h inside the yacc file X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=8dd9a7c7fb811f633c9e2959fa27c16c7a366f9c;p=chaz%2Fopenbox don't include the y.tab.h inside the yacc file --- 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