[code] [textadept] Curses build error

From: Chris Emerson <c-ta.att.mail.nosreme.org>
Date: Tue, 7 May 2013 16:32:38 +0100


On CentOS 6.2, I get an error building ScintillaTerm.cxx (from hg):

scintilla/term/ScintillaTerm.cxx: In member function ‘virtual void SurfaceImpl::AlphaRectangle(PRectangle, int, ColourDesired, int, ColourDesired, int, int)’:
scintilla/term/ScintillaTerm.cxx:318: error: cannot convert ‘cchar_t’ to ‘attr_t’ in initialization
scintilla/term/ScintillaTerm.cxx: In member function ‘virtual void SurfaceImpl::DrawTextTransparent(PRectangle, Font&, XYPOSITION, const char*, int, ColourDesired)’:
scintilla/term/ScintillaTerm.cxx:375: error: cannot convert ‘cchar_t’ to ‘attr_t’ in initialization

The following diff seems to fix it, which suggests that MacOS X isn't the
only one not setting NCURSES_WIDECHAR.

--- scintilla/term/ScintillaTerm.cxx.orig 2013-05-07 15:56:34.183093835 +0100
+++ scintilla/term/ScintillaTerm.cxx 2013-05-07 15:56:37.123064499 +0100
@@ -61,7 +61,7 @@
 // Defines for getting attributes for INDIC_ROUNDBOX and INDIC_STRAIGHTBOX.
 // These are specific to curses implementations.
-#if (defined(NCURSES_WIDECHAR) || __APPLE__)
+#if 1 || (defined(NCURSES_WIDECHAR) || __APPLE__)
 #define wattrget(w, y, x) (w)->_line[(y)].text[(x)].attr;
 #undef NCURSES_CH_T
 #define NCURSES_CH_T cchar_t



You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Tue 07 May 2013 - 11:32:38 EDT

This archive was generated by hypermail 2.2.0 : Wed 08 May 2013 - 06:53:22 EDT