[MacPorts] #21277: Snow Leopard: NCURSES_OPAQUE disables ncurses

MacPorts noreply at macports.org
Thu Sep 10 06:48:47 PDT 2009


#21277: Snow Leopard: NCURSES_OPAQUE disables ncurses
------------------------------------------+---------------------------------
 Reporter:  every_step_i_destroy@…        |       Owner:  macports-tickets@…                   
     Type:  defect                        |      Status:  new                                  
 Priority:  High                          |   Milestone:  MacPorts 1.8.1                       
Component:  ports                         |     Version:  1.8.0                                
 Keywords:  10.6 ncurses curses           |        Port:                                       
------------------------------------------+---------------------------------
 I think "curses" library is not a negligible library, so I think this
 problem is important.

 In Mac OSX Snow Leopard, "NCURSES_OPAQUE" is defined in
 /usr/include/curses.h as follows:

 {{{
 /*
  * Definition used to make WINDOW and similar structs opaque.
  */
 #ifndef NCURSES_OPAQUE
 #define NCURSES_OPAQUE 1
 #endif
 }}}


 This NCURSES_OPAQUE is nasty.
 Unless you define NCURSES_OPAQUE as 0 before including curses.h, WINDOW
 struct and a lot of important definitions are left out, thus making most
 source code using curses helpless.


 Solution is simple, pass "-DNCURSES_OPAQUE=0" to gcc or put "#define
 NCURSES_OPAQUE 0" somewhere before including curses.h.


 This problem is also suggested in Changeset 52086, by jeremyhu.

-- 
Ticket URL: <http://trac.macports.org/ticket/21277>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list