diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-12-02 11:18:50 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-12-02 21:02:10 +0000 |
commit | 6f373175396a06b8e1a91acec6031322d91ef9dd (patch) | |
tree | 1fe6dbe3ca8ba7a819f932d82321dc5f9df68729 /text2pcap-scanner.l | |
parent | 2ec9093ed8a21737bfad150bc9daa6b3a6bb103b (diff) | |
download | wireshark-6f373175396a06b8e1a91acec6031322d91ef9dd.tar.gz wireshark-6f373175396a06b8e1a91acec6031322d91ef9dd.tar.bz2 wireshark-6f373175396a06b8e1a91acec6031322d91ef9dd.zip |
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 'text2pcap-scanner.l')
-rw-r--r-- | text2pcap-scanner.l | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/text2pcap-scanner.l b/text2pcap-scanner.l index 3c9f0b2498..e54e4279a9 100644 --- a/text2pcap-scanner.l +++ b/text2pcap-scanner.l @@ -1,5 +1,10 @@ /* -*-mode: flex-*- */ +%top { +/* Include this before everything else, for various large-file definitions */ +#include "config.h" +} + /* * We don't use input, so don't generate code for it. */ |