1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Add explicit cast to C++ include files to unbreak openjade on

gcc 3.3.
This commit is contained in:
Jun Kuriyama 2003-07-18 05:27:31 +00:00
parent b4d9f5dd70
commit 707e090355
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=85104
3 changed files with 22 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= OpenSP
PORTVERSION= 1.5
PORTREVISION= 1
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= openjade

View File

@ -0,0 +1,11 @@
--- include/Ptr.cxx.orig Fri Jul 18 14:11:13 2003
+++ include/Ptr.cxx Fri Jul 18 14:11:32 2003
@@ -19,7 +19,7 @@
Ptr<T>::~Ptr()
{
if (ptr_) {
- if (ptr_->unref())
+ if (((Resource*)ptr_)->unref())
delete ptr_;
ptr_ = 0;
}

View File

@ -0,0 +1,10 @@
--- include/Ptr.h.orig Fri Jul 18 14:11:08 2003
+++ include/Ptr.h Fri Jul 18 14:11:22 2003
@@ -5,6 +5,7 @@
#define Ptr_INCLUDED 1
#include "Boolean.h"
+#include "Resource.h"
// T must have Resource as a public base class
// T may be an incomplete type