mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
. Fix the build for gcc < 3.2 (e.g. 2.95.4 on 4.x) by using <istream.h>
rather than <istream>.
This commit is contained in:
parent
0d36d439cd
commit
b29bec8566
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=121726
2 changed files with 32 additions and 0 deletions
16
devel/antlr/files/patch-lib::cpp::antlr::CharBuffer.hpp
Normal file
16
devel/antlr/files/patch-lib::cpp::antlr::CharBuffer.hpp
Normal file
|
@ -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>
|
16
devel/antlr/files/patch-lib::cpp::src::ASTFactory.cpp
Normal file
16
devel/antlr/files/patch-lib::cpp::src::ASTFactory.cpp
Normal file
|
@ -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;
|
||||
|
Loading…
Add table
Reference in a new issue