tFix for proper compilation with --disable-curses-client - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 8ed72ee7b639ea7aa0b6d9b5383566e4c076ae37
(DIR) parent 85f5b158176c66547a12b83d986e8e1a43af6252
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Wed, 25 Apr 2001 00:27:54 +0000
Fix for proper compilation with --disable-curses-client
Diffstat:
M src/curses_client.c | 1 +
M src/dopeos.h | 6 ++++++
M src/gtk_client.c | 2 +-
3 files changed, 8 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/src/curses_client.c b/src/curses_client.c
t@@ -1854,6 +1854,7 @@ void CursesLoop() {
#else
#include <glib.h>
+#include "dopewars.h" /* We need this for the definition of '_' */
void CursesLoop() {
g_print(_("No curses client available - rebuild the binary passing the\n"
(DIR) diff --git a/src/dopeos.h b/src/dopeos.h
t@@ -171,7 +171,13 @@ extern int Width,Depth;
#define StatsAttr (COLOR_PAIR(5))
#define DebtAttr (COLOR_PAIR(6))
+#ifdef CURSES_CLIENT
int bgetch();
+#else
+/* When not using curses, fall back to stdio's getchar() function */
+#define bgetch getchar
+#endif
+
#define bselect select
#if NETWORKING
(DIR) diff --git a/src/gtk_client.c b/src/gtk_client.c
t@@ -2825,7 +2825,7 @@ void DisplaySpyReports(Player *Play) {
#else
#include <glib.h>
-#include "dopewars.h"
+#include "dopewars.h" /* We need this for the definition of '_' */
char GtkLoop(int *argc,char **argv[],char ReturnOnFail) {
if (!ReturnOnFail) {