mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-29 12:18:12 +00:00
lib: early-include "config.h" in flex lexers
This is neccessary to get _FILE_OFFSET_BITS right. Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
01db90cd83
commit
7b34167d7d
@ -22,6 +22,11 @@
|
||||
* 02111-1307, USA.
|
||||
*/
|
||||
|
||||
%top{
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
}
|
||||
%{
|
||||
/* ignore flex generated code in static analyzer */
|
||||
#ifndef __clang_analyzer__
|
||||
|
@ -1,4 +1,3 @@
|
||||
%{
|
||||
/*
|
||||
* clippy (CLI preparator in python) C pseudo-lexer
|
||||
* Copyright (C) 2016-2017 David Lamparter for NetDEF, Inc.
|
||||
@ -34,6 +33,12 @@
|
||||
* code documentation in it.
|
||||
*/
|
||||
|
||||
%top{
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
}
|
||||
%{
|
||||
/* ignore harmless bugs in old versions of flex */
|
||||
#pragma GCC diagnostic ignored "-Wsign-compare"
|
||||
#pragma GCC diagnostic ignored "-Wunused-value"
|
||||
|
Loading…
Reference in New Issue
Block a user