settings: Include generated header after others
authorTobias Brunner <tobias@strongswan.org>
Tue, 13 May 2014 07:54:49 +0000 (09:54 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 15 May 2014 09:28:09 +0000 (11:28 +0200)
Newer Bison versions declare the parser function in the header, which
requires custom types.

src/libstrongswan/settings/settings_lexer.l
src/libstrongswan/settings/settings_parser.y

index f287761..5074e70 100644 (file)
  * for more details.
  */
 
-#include "settings_parser.h"
-
 #include <utils/parser_helper.h>
 
+#include "settings_parser.h"
+
 bool settings_parser_open_next_file(parser_helper_t *ctx);
 
 static void include_files(parser_helper_t *ctx);
index d5566df..f4a4431 100644 (file)
 #define _GNU_SOURCE /* for asprintf() */
 #include <stdio.h>
 
-#include "settings_parser.h"
-
 #include <library.h>
 #include <collections/array.h>
 #include <settings/settings_types.h>
 #include <utils/parser_helper.h>
 
+#include "settings_parser.h"
+
 #define YYDEBUG 1
 
 /**