[Avida-SVN] r3399 - development/source/targets/avida-viewer

brysonda at myxo.css.msu.edu brysonda at myxo.css.msu.edu
Fri Sep 11 09:43:00 PDT 2009


Author: brysonda
Date: 2009-09-11 12:42:59 -0400 (Fri, 11 Sep 2009)
New Revision: 3399

Modified:
   development/source/targets/avida-viewer/cMenuWindow.cc
   development/source/targets/avida-viewer/cTextWindow.h
Log:
Allow building of the viewer on Mac OS X 10.6.   Specifically, fixes compatibility with NCurses 5.7, in which the default use hides the internals of the WINDOW struct and breaks pretty much all ncurses apps in the process.

Modified: development/source/targets/avida-viewer/cMenuWindow.cc
===================================================================
--- development/source/targets/avida-viewer/cMenuWindow.cc	2009-09-10 20:39:25 UTC (rev 3398)
+++ development/source/targets/avida-viewer/cMenuWindow.cc	2009-09-11 16:42:59 UTC (rev 3399)
@@ -67,7 +67,7 @@
   num_rows = 1 + (num_options-1) / num_cols;
 
   // @CAO We need to identify if we have a problem fitting everything!)
-  if (num_rows > max_rows) ;
+//  if (num_rows > max_rows) ;
 
   // Determine dimenstions for window
   int win_height = num_rows + 4;

Modified: development/source/targets/avida-viewer/cTextWindow.h
===================================================================
--- development/source/targets/avida-viewer/cTextWindow.h	2009-09-10 20:39:25 UTC (rev 3398)
+++ development/source/targets/avida-viewer/cTextWindow.h	2009-09-11 16:42:59 UTC (rev 3399)
@@ -9,9 +9,11 @@
 #define cTextWindow_h
 
 #ifdef HAVE_NCURSES_H
+#define NCURSES_OPAQUE 0
 #include <ncurses.h>
 #undef OK
 #else
+#define NCURSES_OPAQUE 0
 #include <curses.h>
 #undef OK
 #endif




More information about the Avida-cvs mailing list