Rename the files of the ncurses interface.

The ncurses.h file could clash with /usr/include/ncurses.h, causing
the build to fail with an unintuitive error message.
This commit is contained in:
Olivier Teulière 2013-04-07 00:16:24 +02:00
parent 4060b20c5b
commit 2fa213a32b
4 changed files with 6 additions and 6 deletions

View file

@ -181,8 +181,8 @@ qt/validator_factory.cpp
qt/validator_factory.h
utils/game_io.cpp
utils/game_io.h
utils/ncurses.cpp
utils/ncurses.h
utils/curses_intf.cpp
utils/curses_intf.h
# Files generated from the .ui files of Qt designer.
# It works, because Makefile.in.in was patched to support that...
qt/ui/arbit_assignments.ui.h

View file

@ -37,7 +37,7 @@ endif
if BUILD_NCURSES
bin_PROGRAMS += eliotcurses
eliotcurses_SOURCES = ncurses.cpp ncurses.h
eliotcurses_SOURCES = curses_intf.cpp curses_intf.h
eliotcurses_LDADD = ../game/libgame.a ../dic/libdic.a @CURSES_LIB@ @LIBINTL@ @LIBCONFIG_LIBS@ @ARABICA_LIBS@ @EXPAT_LIBS@
if WITH_LOGGING
eliotcurses_LDADD += @LOG4CXX_LIBS@

View file

@ -37,7 +37,7 @@
#include <cwctype> // For iswalnum
#include <algorithm>
#include "ncurses.h"
#include "curses_intf.h"
#include "dic.h"
#include "game_factory.h"
#include "game_params.h"

View file

@ -18,8 +18,8 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*****************************************************************************/
#ifndef NCURSES_H_
#define NCURSES_H_
#ifndef CURSES_INTF_H_
#define CURSES_INTF_H_
#include "config.h"