Fix build failure of cl in newer gcc and bison combinations
authorNelson Ferreira <nelson.ferreira@ieee.org>
Tue, 31 Jul 2012 02:51:14 +0000 (22:51 -0400)
committerNelson Ferreira <nelson.ferreira@ieee.org>
Tue, 31 Jul 2012 02:51:14 +0000 (22:51 -0400)
* modules/cl/cl-loop.h: Include cl-loop-parser.h only after
cl_loop_sentence_t is defined.

Signed-off-by: Nelson Ferreira <nelson.ferreira@ieee.org>
modules/cl/cl-loop.h

index c13336e..432c3ab 100644 (file)
@@ -40,7 +40,6 @@
 #define INCLUDED_cl_loop_h_ 1
 
 #include "cl.h"
-#include "cl-loop-parser.h"
 #include "ent/ent-optable.h"
 #include "ent/ent-binary-op.h"
 #include "ent/ent-binary-rel.h"
@@ -92,6 +91,8 @@ typedef struct cl_loop_append_clause_s cl_loop_append_clause_t;
 typedef struct cl_loop_accu_clause_s cl_loop_accu_clause_t;
 typedef struct cl_loop_inifinret_clause_s cl_loop_inifinret_clause_t;
 
+#include "cl-loop-parser.h"
+
 /* nasty nasty nasty
  * tg reported that bison 2.4.1 may not define YYSTYPE, we go the
  * utmost safe way and just define it here */