aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dtd_parse.l
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dtd_parse.l')
-rw-r--r--epan/dtd_parse.l5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/dtd_parse.l b/epan/dtd_parse.l
index e9bc00ed97..9d7677d8bf 100644
--- a/epan/dtd_parse.l
+++ b/epan/dtd_parse.l
@@ -1,6 +1,7 @@
%top {
/* Include this before everything else, for various large-file definitions */
#include "config.h"
+#include <wireshark.h>
}
/*
@@ -91,7 +92,7 @@
/*
* Disable diagnostics in the code generated by Flex.
*/
-DIAG_OFF_FLEX
+DIAG_OFF_FLEX()
struct _proto_xmlpi_attr {
const gchar* name;
@@ -352,7 +353,7 @@ squoted ['][^\']*[']
/*
* Turn diagnostics back on, so we check the code that we've written.
*/
-DIAG_ON_FLEX
+DIAG_ON_FLEX()
static dtd_token_data_t* new_token(gchar* text, gchar* location) {
dtd_token_data_t* t = g_new(dtd_token_data_t,1);