mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Fix build with gcc 3.4
This commit is contained in:
parent
2177b8eea2
commit
90b716b707
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=116421
@ -31,10 +31,6 @@ MAN1= rascal.1
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${OSVERSION} >= 502126
|
||||
BROKEN= "Does not compile with gcc 3.4.2"
|
||||
.endif
|
||||
|
||||
.if ${OSVERSION} < 502000
|
||||
BUILD_DEPENDS= ${LOCALBASE}/lib/libreadline.so.4:${PORTSDIR}/devel/readline
|
||||
RUN_DEPENDS= ${LOCALBASE}/lib/libreadline.so.4:${PORTSDIR}/devel/readline
|
||||
|
45
math/rascal/files/patch-mmatrix.hpp
Normal file
45
math/rascal/files/patch-mmatrix.hpp
Normal file
@ -0,0 +1,45 @@
|
||||
--- modules/mmatrix.hpp.orig Mon Aug 16 19:17:01 2004
|
||||
+++ modules/mmatrix.hpp Mon Aug 16 19:27:48 2004
|
||||
@@ -33,14 +33,14 @@
|
||||
public:
|
||||
mmatrix(int aN,int aM) : N(aN),M(aM)
|
||||
{
|
||||
- a=new (T *)[N];
|
||||
+ a=new T *[N];
|
||||
int i;
|
||||
for(i=0;i<N;i++)
|
||||
a[i]=new T[M];
|
||||
}
|
||||
mmatrix(int aN,int aM,const T & x,const T & y) : N(aN),M(aM)
|
||||
{
|
||||
- a=new (T *)[N];
|
||||
+ a=new T *[N];
|
||||
int i;
|
||||
for(i=0;i<N;i++)
|
||||
a[i]=new T[M];
|
||||
@@ -51,14 +51,14 @@
|
||||
}
|
||||
mmatrix(const T & b) : N(1),M(1)
|
||||
{
|
||||
- a=new (T *)[1];
|
||||
+ a=new T *[1];
|
||||
a[0]=new T[1];
|
||||
a[0][0]=b;
|
||||
}
|
||||
mmatrix(const mmatrix<T> &b) : N(b.N),M(b.M)
|
||||
{
|
||||
int i,j;
|
||||
- a=new (T *)[N];
|
||||
+ a=new T *[N];
|
||||
for(i=0;i<N;i++)
|
||||
{
|
||||
a[i]=new T[M];
|
||||
@@ -77,7 +77,7 @@
|
||||
{
|
||||
for(i=0;i<N;i++) delete [] a[i]; delete [] a; // what if self-assigment ?!??
|
||||
N=b.N;M=b.M;
|
||||
- a=new (T *)[N];
|
||||
+ a=new T *[N];
|
||||
for(i=0;i<N;i++)
|
||||
a[i]=new T[M];
|
||||
}
|
Loading…
Reference in New Issue
Block a user