mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 05:01:24 +00:00
[qfcc] Fix some debian flex incompatibilities
I need upstream flex for its line handling and nicer interface, but debian's flex is ancient and stuck with the legacy interface, and I want QF to be buildable on at least sid.
This commit is contained in:
parent
4e2d713400
commit
6266ac4d94
1 changed files with 6 additions and 0 deletions
|
@ -170,6 +170,12 @@ typedef enum {
|
|||
rua_num_term,
|
||||
} rua_term;
|
||||
|
||||
// for debian flex
|
||||
#ifndef yystart
|
||||
#define yystart() YY_START
|
||||
#define yybuffer YY_BUFFER_STATE
|
||||
#endif
|
||||
|
||||
#define YY_USER_ACTION \
|
||||
update_loc (yylloc, yyleng); \
|
||||
save_text (yylval, yytext, yyleng, yystart(), extra); \
|
||||
|
|
Loading…
Reference in a new issue