summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libutil.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-12-17 02:32:27 +0100
committerAdam Borowski <kilobyte@angband.pl>2012-12-17 03:35:33 +0100
commit6e4a671ffc090cafc7044ce0b3c032f0ab210c69 (patch)
tree451057f9c45041a00aff56155bc493ef4ce978c4 /crawl-ref/source/libutil.cc
parent345f0734ffc0728ca0a9d248c881c097e85c23c6 (diff)
downloadcrawl-ref-6e4a671ffc090cafc7044ce0b3c032f0ab210c69.tar.gz
crawl-ref-6e4a671ffc090cafc7044ce0b3c032f0ab210c69.zip
Fix a compiler warning (unused function in tile builds).
Diffstat (limited to 'crawl-ref/source/libutil.cc')
-rw-r--r--crawl-ref/source/libutil.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/crawl-ref/source/libutil.cc b/crawl-ref/source/libutil.cc
index d437470881..f28d77a52d 100644
--- a/crawl-ref/source/libutil.cc
+++ b/crawl-ref/source/libutil.cc
@@ -1193,6 +1193,7 @@ void text_popup(const string& text, const wchar_t *caption)
MessageBoxW(0, OUTW(text), caption, MB_OK);
}
#else
+# ifdef USE_CURSES
/* [ds] This SIGHUP handling is primitive and far from safe, but it
* should be better than nothing. Feel free to get rigorous on this.
@@ -1202,11 +1203,6 @@ static void handle_hangup(int)
if (crawl_state.seen_hups++)
return;
-#ifdef USE_TILE_LOCAL
- // XXX: Will a tiles build ever need to handle the HUP signal?
- // 1KB: yes, but you may not save here, especially not from a signal
- // handler.
-#elif defined(USE_CURSES)
// When using Curses, closing stdin will cause any Curses call blocking
// on key-presses to immediately return, including any call that was
// still blocking in the main thread when the HUP signal was caught.
@@ -1221,10 +1217,8 @@ static void handle_hangup(int)
// the hack of avoiding excomunication consesquences because of the
// more() after "You have lost your religion!"
fclose(stdin);
-#else
- #error "Must use either Curses or tiles on Unix"
-#endif
}
+# endif
void init_signals()
{