ports/devel/ncurses/files/patch-c++-clang
Rong-En Fan d9f5f42f01 - Fix build with clang
PR:		ports/172357
Submitted by:	arrowdodger <6yearold at gmail.com>
Obtained from:	upstream (20110409 and 20120608 patch)
2012-10-08 14:19:46 +00:00

40 lines
1.1 KiB
Text

--- c++/cursesf.h.orig 2012-10-07 15:21:40.000000000 +0800
+++ c++/cursesf.h 2012-10-07 15:22:12.000000000 +0800
@@ -677,7 +677,7 @@
}
public:
- NCursesUserForm (NCursesFormField Fields[],
+ NCursesUserForm (NCursesFormField* Fields[],
const T* p_UserData = STATIC_CAST(T*)(0),
bool with_frame=FALSE,
bool autoDelete_Fields=FALSE)
@@ -686,7 +686,7 @@
set_user (const_cast<void *>(p_UserData));
};
- NCursesUserForm (NCursesFormField Fields[],
+ NCursesUserForm (NCursesFormField* Fields[],
int nlines,
int ncols,
int begin_y = 0,
--- c++/cursesm.h.orig 2012-10-07 15:21:44.000000000 +0800
+++ c++/cursesm.h 2012-10-07 15:22:55.000000000 +0800
@@ -635,7 +635,7 @@
}
public:
- NCursesUserMenu (NCursesMenuItem Items[],
+ NCursesUserMenu (NCursesMenuItem* Items[],
const T* p_UserData = STATIC_CAST(T*)(0),
bool with_frame=FALSE,
bool autoDelete_Items=FALSE)
@@ -644,7 +644,7 @@
set_user (const_cast<void *>(p_UserData));
};
- NCursesUserMenu (NCursesMenuItem Items[],
+ NCursesUserMenu (NCursesMenuItem* Items[],
int nlines,
int ncols,
int begin_y = 0,