diff options
author | glewis <glewis@FreeBSD.org> | 2004-11-16 07:57:59 +0800 |
---|---|---|
committer | glewis <glewis@FreeBSD.org> | 2004-11-16 07:57:59 +0800 |
commit | 10cdf347fa95f3d481b160b861f5a621b9655047 (patch) | |
tree | f5defbfefd1bf0d5c49bda8f8e3392bf91e0754a | |
parent | 86ac9dbbf5e39df8228e8ae9c5f658831912cd7f (diff) | |
download | freebsd-ports-gnome-10cdf347fa95f3d481b160b861f5a621b9655047.tar.gz freebsd-ports-gnome-10cdf347fa95f3d481b160b861f5a621b9655047.tar.zst freebsd-ports-gnome-10cdf347fa95f3d481b160b861f5a621b9655047.zip |
. Fix the build for gcc < 3.2 (e.g. 2.95.4 on 4.x) by using <istream.h>
rather than <istream>.
-rw-r--r-- | devel/antlr/files/patch-lib::cpp::antlr::CharBuffer.hpp | 16 | ||||
-rw-r--r-- | devel/antlr/files/patch-lib::cpp::src::ASTFactory.cpp | 16 |
2 files changed, 32 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> diff --git a/devel/antlr/files/patch-lib::cpp::src::ASTFactory.cpp b/devel/antlr/files/patch-lib::cpp::src::ASTFactory.cpp new file mode 100644 index 000000000000..72d9e8db937c --- /dev/null +++ b/devel/antlr/files/patch-lib::cpp::src::ASTFactory.cpp @@ -0,0 +1,16 @@ +$FreeBSD$ + +--- lib/cpp/src/ASTFactory.cpp.orig Mon Nov 15 16:31:34 2004 ++++ lib/cpp/src/ASTFactory.cpp Mon Nov 15 16:32:20 2004 +@@ -12,7 +12,11 @@ + #include "antlr/ANTLRUtil.hpp" + + #include <iostream> ++#if defined(__GNUC__) && (__GNUC__ < 3 || __GNUC_MINOR__ < 2) ++#include <istream.h> ++#else + #include <istream> ++#endif + + using namespace std; + |