don't include the y.tab.h inside the yacc file
authorDana Jansens <danakj@orodu.net>
Wed, 2 Apr 2003 17:21:59 +0000 (17:21 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 2 Apr 2003 17:21:59 +0000 (17:21 +0000)
openbox/parse.h
openbox/parse.yacc

index 3c649db..9f9eda6 100644 (file)
@@ -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,
index e9b469e..8043c04 100644 (file)
@@ -1,5 +1,8 @@
 %{
+#define NO_Y_H
 #include "parse.h"
+#undef NO_Y_H
+
 #ifdef HAVE_STDIO_H
 #  include <stdio.h>
 #endif