jenkins-core-weekly: update to 2.491
[oi-userland.git] / components / library / ncurses / patches / 03-gcc7.patch
blobd8a46dd1317ce2d3b75982a8e91ed67e61195838
1 --- ncurses-6.5/c++/cursesp.h.orig
2 +++ ncurses-6.5/c++/cursesp.h
3 @@ -60,7 +60,7 @@
4 const PANEL* m_owner; // the panel itself
5 } UserHook;
7 - inline UserHook *UserPointer()
8 + inline UserHook *UserPointer() const
10 UserHook* uptr = reinterpret_cast<UserHook*>(
11 const_cast<void *>(::panel_userptr (p)));
12 @@ -79,7 +79,7 @@
14 // Set the user pointer of the panel.
16 - void *get_user()
17 + void *get_user() const
19 UserHook* uptr = UserPointer();
20 void *result = 0;
21 --- ncurses-6.5/c++/cursesf.h.orig
22 +++ ncurses-6.5/c++/cursesf.h
23 @@ -383,7 +383,7 @@
24 uptr->m_user = user;
27 - inline void *get_user() {
28 + inline void *get_user() const {
29 UserHook* uptr = reinterpret_cast<UserHook*>(::form_userptr (form));
30 assert (uptr != 0 && uptr->m_back==this && uptr->m_owner==form);
31 return uptr->m_user;
32 --- ncurses-6.5/c++/cursesm.h.orig
33 +++ ncurses-6.5/c++/cursesm.h
34 @@ -244,7 +244,7 @@
35 uptr->m_user = user;
38 - inline void *get_user() {
39 + inline void *get_user() const {
40 UserHook* uptr = STATIC_CAST(UserHook*)(::menu_userptr (menu));
41 assert (uptr != 0 && uptr->m_back==this && uptr->m_owner==menu);
42 return uptr->m_user;