]>
Commit | Line | Data |
---|---|---|
bebe2200 MT |
1 | Submitted by: Matt Burgess (matthew at linuxfromscratch dot org) |
2 | Date: 2009-05-03 | |
3 | Initial Package Version: 2.5.35 | |
4 | Origin: Matt Burgess | |
5 | Upstream Status: Submitted (attached to sourceforge bug 2178663) | |
6 | Description: Fixes an error caused by header cleanups in GCC 4.4.0 that is | |
7 | evident from the test suite and would affect any C++ lexers | |
8 | generated by Flex. Without this patch, Flex will generate lexers | |
9 | containing references to the 'EOF' symbol without including the | |
10 | necessary C++ header file, leading to: | |
11 | ||
12 | error: 'EOF' was not declared in this scope | |
13 | ||
14 | diff -Naur flex-2.5.35.orig/skel.c flex-2.5.35/skel.c | |
15 | --- flex-2.5.35.orig/skel.c 2008-02-26 21:34:19.000000000 +0000 | |
16 | +++ flex-2.5.35/skel.c 2009-05-03 15:18:14.000000000 +0000 | |
17 | @@ -284,6 +284,7 @@ | |
18 | "/* begin standard C++ headers. */", | |
19 | "#include <iostream> ", | |
20 | "#include <errno.h>", | |
21 | + "#include <cstdio>", | |
22 | "#include <cstdlib>", | |
23 | "#include <cstring>", | |
24 | "/* end standard C++ headers. */", |