mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Unbreak platforms with char unsigned by default. Oddly enough, GCC isn't
satisfied with a simple cast to int in the check against EOF, so the fix is a bit involved by actually having to go through a temporary variable.
This commit is contained in:
parent
9eecb5528b
commit
33ae3dfefd
1 changed files with 6 additions and 2 deletions
|
|
@ -67,8 +67,12 @@
|
|||
* for all subsequent invocations, which is the effect desired.
|
||||
*/
|
||||
#undef unput
|
||||
#define unput(c) \
|
||||
if (c != EOF) yyunput( c, yytext_ptr )
|
||||
#define unput(c) \
|
||||
do { \
|
||||
int _c = c; \
|
||||
if (_c != EOF) \
|
||||
yyunput(_c, yytext_ptr); \
|
||||
} while(0)
|
||||
#endif
|
||||
|
||||
static int id_or_type(const char *);
|
||||
|
|
|
|||
Loading…
Reference in a new issue