don't include the y.tab.h inside the yacc file

This commit is contained in:
Dana Jansens 2003-04-02 17:21:59 +00:00
parent fa741bc010
commit 8dd9a7c7fb
2 changed files with 6 additions and 1 deletions

View 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,

View file

@ -1,5 +1,8 @@
%{
#define NO_Y_H
#include "parse.h"
#undef NO_Y_H
#ifdef HAVE_STDIO_H
# include <stdio.h>
#endif