diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-02 17:21:59 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-02 17:21:59 +0000 |
| commit | 8dd9a7c7fb811f633c9e2959fa27c16c7a366f9c (patch) | |
| tree | 41b59b1dfe7a48620f2e5417acc0d9f7f27f205e | |
| parent | fa741bc010435e1be6c2739257e01243191e1deb (diff) | |
don't include the y.tab.h inside the yacc file
| -rw-r--r-- | openbox/parse.h | 4 | ||||
| -rw-r--r-- | openbox/parse.yacc | 3 |
2 files changed, 6 insertions, 1 deletions
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 <glib.h> -#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 <stdio.h> #endif |
