Windows: Fix stdint.h redefinition warnings

We must include the headers, particulary stdint.h, at the top of
scanner.l so that the stdint.h defintions precede flex's own
replacements.
This commit is contained in:
João Valverde 2021-10-06 16:03:19 +01:00
parent e3ba0c5ea5
commit 5f8ab69cb5
1 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,14 @@
%top {
/* Include this before everything else, for various large-file definitions */
#include "config.h"
#include <stdlib.h>
#include <errno.h>
#include "dfilter-int.h"
#include "syntax-tree.h"
#include "grammar.h"
#include "dfunctions.h"
}
/*
@ -61,14 +69,6 @@
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include <stdlib.h>
#include <errno.h>
#include "dfilter-int.h"
#include "syntax-tree.h"
#include "grammar.h"
#include "dfunctions.h"
/*
* Disable diagnostics in the code generated by Flex.
*/