summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libdos.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-20 19:57:53 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-06-20 19:57:53 +0000
commit14e3000983cf98d12dab9560f7ee0e3cbcc5ddfb (patch)
treefd3b76ad73117543aa98d49eb1bc7e1e57b34637 /crawl-ref/source/libdos.cc
parent8ad4f44fa747a32e0d476971beeaf2c0550f16e5 (diff)
downloadcrawl-ref-14e3000983cf98d12dab9560f7ee0e3cbcc5ddfb.tar.gz
crawl-ref-14e3000983cf98d12dab9560f7ee0e3cbcc5ddfb.zip
Fixed broken compile on DOS and Windows.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1611 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libdos.cc')
-rw-r--r--crawl-ref/source/libdos.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/libdos.cc b/crawl-ref/source/libdos.cc
index 02e1b7f85c..4d05c926ea 100644
--- a/crawl-ref/source/libdos.cc
+++ b/crawl-ref/source/libdos.cc
@@ -9,6 +9,7 @@
// Every .cc must include AppHdr or bad things happen.
#include "AppHdr.h"
#include "externs.h"
+#include "cio.h"
#include <termios.h>
#include <conio.h>
@@ -127,4 +128,9 @@ int m_getch()
return getch();
}
+void putwch(unsigned c)
+{
+ putch(static_cast<char>(c));
+}
+
#endif /* #if defined(DOS) */