Try putting the include of config.h at the top of the generated scanner,
so that the config.h definitions are available before we include anything else; that way, for example, anything defined to enable large-file support will be defined before we include any system header files that might depend on it. svn path=/trunk/; revision=36832
This commit is contained in:
parent
0bbbcf55df
commit
210cc311fb
|
@ -1,20 +1,4 @@
|
|||
/*
|
||||
* We don't use unput, so don't generate code for it.
|
||||
*/
|
||||
%option nounput
|
||||
|
||||
/*
|
||||
* We don't read from the terminal.
|
||||
*/
|
||||
%option never-interactive
|
||||
|
||||
/*
|
||||
* Prefix scanner routines with "df_" rather than "yy", so this scanner
|
||||
* can coexist with other scanners.
|
||||
*/
|
||||
%option prefix="df_"
|
||||
|
||||
%{
|
||||
%top{
|
||||
/*
|
||||
* $Id$
|
||||
*
|
||||
|
@ -40,7 +24,25 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
* We don't use unput, so don't generate code for it.
|
||||
*/
|
||||
%option nounput
|
||||
|
||||
/*
|
||||
* We don't read from the terminal.
|
||||
*/
|
||||
%option never-interactive
|
||||
|
||||
/*
|
||||
* Prefix scanner routines with "df_" rather than "yy", so this scanner
|
||||
* can coexist with other scanners.
|
||||
*/
|
||||
%option prefix="df_"
|
||||
|
||||
%{
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
||||
|
|
Loading…
Reference in New Issue