aboutsummaryrefslogtreecommitdiffstats
path: root/epan/uat_load.l
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-12-02 11:18:50 -0800
committerGuy Harris <guy@alum.mit.edu>2016-12-02 21:02:10 +0000
commit6f373175396a06b8e1a91acec6031322d91ef9dd (patch)
tree1fe6dbe3ca8ba7a819f932d82321dc5f9df68729 /epan/uat_load.l
parent2ec9093ed8a21737bfad150bc9daa6b3a6bb103b (diff)
Include config.h at the very beginning of all Flex scanners.
That way, if we #define anything for large file support, that's done before we include any system header files that either depend on that definition or that define it themselves if it's not already defined. Change-Id: I9b07344151103be337899dead44d6960715d6813 Reviewed-on: https://code.wireshark.org/review/19035 Petri-Dish: Guy Harris <guy@alum.mit.edu> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/uat_load.l')
-rw-r--r--epan/uat_load.l7
1 files changed, 5 insertions, 2 deletions
diff --git a/epan/uat_load.l b/epan/uat_load.l
index ae8443de4d..8c8af5452f 100644
--- a/epan/uat_load.l
+++ b/epan/uat_load.l
@@ -1,3 +1,8 @@
+%top {
+/* Include this before everything else, for various large-file definitions */
+#include "config.h"
+}
+
/*
* We want a reentrant scanner.
*/
@@ -75,8 +80,6 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include "config.h"
-
#include <stdlib.h>
#include <stdio.h>
#include <string.h>