summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-09-20 18:13:32 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-09-25 14:32:30 -0700
commit995c41aeeefb8d20e7b8d3415b4fcbd9230af6d1 (patch)
treee5da4e9f5fd90c1045142928dd17072333b327ea
parentcc048878478df69796822c164e85e88c023deb43 (diff)
downloadcrawl-ref-995c41aeeefb8d20e7b8d3415b4fcbd9230af6d1.tar.gz
crawl-ref-995c41aeeefb8d20e7b8d3415b4fcbd9230af6d1.zip
libunix.cc: add forward declarations where needed
unixcurses_{startup,shutdown}() and sighup_save_and_exit() were used before they were declared/defined. Signed-off-by: Steven Noonan <steven@uplinklabs.net>
-rw-r--r--crawl-ref/source/libunix.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index 20dd071ca8..7006a6d2fb 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -72,6 +72,9 @@ static struct termios game_term;
#include CURSES_INCLUDE_FILE
#endif
+void unixcurses_startup();
+void unixcurses_shutdown();
+
// Globals holding current text/backg. colors
static short FG_COL = WHITE;
static short BG_COL = BLACK;
@@ -323,6 +326,9 @@ static void handle_sigwinch(int)
}
#ifdef SIGHUP_SAVE
+
+void sighup_save_and_exit();
+
/* [ds] This SIGHUP handling is primitive and far from safe, but it
* should be better than nothing. Feel free to get rigorous on this.
*/