Skip to content

Commit d40c44e

Browse files
committed
[lldb] Fix LLDB compilation with ncurses 6.2 due to wattr_set/get being a macro
My ncurses 6.2 arch defines those two functions as macros, so the scope operator doesn't work here.
1 parent a512c89 commit d40c44e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lldb/source/Core/IOHandlerCursesGUI.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ class Window {
486486
attr_t saved_attr;
487487
short saved_pair;
488488
int saved_opts;
489-
::wattr_get(m_window, &saved_attr, &saved_pair, &saved_opts);
489+
wattr_get(m_window, &saved_attr, &saved_pair, &saved_opts);
490490
if (use_blue_background)
491491
::wattron(m_window, COLOR_PAIR(WhiteOnBlue));
492492
while (!string.empty()) {
@@ -522,7 +522,7 @@ class Window {
522522
continue;
523523
}
524524
if (value == 0) { // Reset.
525-
::wattr_set(m_window, saved_attr, saved_pair, &saved_opts);
525+
wattr_set(m_window, saved_attr, saved_pair, &saved_opts);
526526
if (use_blue_background)
527527
::wattron(m_window, COLOR_PAIR(WhiteOnBlue));
528528
} else {
@@ -531,7 +531,7 @@ class Window {
531531
COLOR_PAIR(value - 30 + 1 + (use_blue_background ? 8 : 0)));
532532
}
533533
}
534-
::wattr_set(m_window, saved_attr, saved_pair, &saved_opts);
534+
wattr_set(m_window, saved_attr, saved_pair, &saved_opts);
535535
}
536536

537537
void Touch() {

0 commit comments

Comments
 (0)