From b29bec8566fa57a652cc1be9119ca14e62b6d37c Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Mon, 15 Nov 2004 23:57:59 +0000 Subject: . Fix the build for gcc < 3.2 (e.g. 2.95.4 on 4.x) by using rather than . --- devel/antlr/files/patch-lib::cpp::src::ASTFactory.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 devel/antlr/files/patch-lib::cpp::src::ASTFactory.cpp (limited to 'devel/antlr/files/patch-lib::cpp::src::ASTFactory.cpp') 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 ++#if defined(__GNUC__) && (__GNUC__ < 3 || __GNUC_MINOR__ < 2) ++#include ++#else + #include ++#endif + + using namespace std; + -- cgit v1.2.3