summaryrefslogtreecommitdiff
path: root/codegen
diff options
context:
space:
mode:
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2012-08-24 11:45:15 +0300
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>2012-08-24 14:56:31 +0300
commit7aa682a4021211d0438b76e0bcd1b9d63b5db1c1 (patch)
tree5e860acd10defb61a0c85ec685bcb2044fc4d564 /codegen
parent0b534d5105cb48b2db8f4103214858acf90d24dc (diff)
Fix include order because bison is retarded - fixes codegen compilation with bison 2.6
Diffstat (limited to 'codegen')
-rw-r--r--codegen/analyzer.l2
-rw-r--r--codegen/parser.y2
2 files changed, 2 insertions, 2 deletions
diff --git a/codegen/analyzer.l b/codegen/analyzer.l
index b3620dd..4417fa4 100644
--- a/codegen/analyzer.l
+++ b/codegen/analyzer.l
@@ -17,8 +17,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
%{
-#include "yystype.h"
#include "generator.h"
+#include "yystype.h"
#define YY_DECL int yylex(CodeGen *codegen)
void yyerror(CodeGen *codegen, const char *msg);
diff --git a/codegen/parser.y b/codegen/parser.y
index 8dde8ce..b3753cf 100644
--- a/codegen/parser.y
+++ b/codegen/parser.y
@@ -17,8 +17,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
%{
-#include "yystype.h"
#include "generator.h"
+#include "yystype.h"
int yylex(CodeGen *codegen);
void yyerror(CodeGen *codegen, const char *msg);