diff options
| author | Greg Lewis <glewis@FreeBSD.org> | 2004-11-15 23:57:59 +0000 |
|---|---|---|
| committer | Greg Lewis <glewis@FreeBSD.org> | 2004-11-15 23:57:59 +0000 |
| commit | b29bec8566fa57a652cc1be9119ca14e62b6d37c (patch) | |
| tree | 60cad754c609296bc54d6d6f99a96ace2d886db1 /devel/antlr/files/patch-lib::cpp::antlr::CharBuffer.hpp | |
| parent | pkg-message has been removed. (diff) | |
. Fix the build for gcc < 3.2 (e.g. 2.95.4 on 4.x) by using <istream.h>
rather than <istream>.
Diffstat (limited to 'devel/antlr/files/patch-lib::cpp::antlr::CharBuffer.hpp')
| -rw-r--r-- | devel/antlr/files/patch-lib::cpp::antlr::CharBuffer.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/antlr/files/patch-lib::cpp::antlr::CharBuffer.hpp b/devel/antlr/files/patch-lib::cpp::antlr::CharBuffer.hpp new file mode 100644 index 000000000000..ce84fe4aca2e --- /dev/null +++ b/devel/antlr/files/patch-lib::cpp::antlr::CharBuffer.hpp @@ -0,0 +1,16 @@ +$FreeBSD$ + +--- lib/cpp/antlr/CharBuffer.hpp.orig Mon Nov 15 16:35:21 2004 ++++ lib/cpp/antlr/CharBuffer.hpp Mon Nov 15 16:36:04 2004 +@@ -8,7 +8,11 @@ + * $Id: //depot/code/org.antlr/release/antlr-2.7.4/lib/cpp/antlr/CharBuffer.hpp#1 $ + */ + ++#if defined(__GNUC__) && (__GNUC__ < 3 || __GNUC_MINOR__ < 2) ++#include <istream.h> ++#else + #include <istream> ++#endif + + #include <antlr/config.hpp> + #include <antlr/InputBuffer.hpp> |
