summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libunix.h
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2009-10-10 04:10:44 -0700
committerSteven Noonan <steven@uplinklabs.net>2009-10-10 04:41:58 -0700
commite0e65f6ed5124251c88ce3e08a0a88a644bcc8ed (patch)
tree98d438710e4f523190e122f33ee1286136df20cb /crawl-ref/source/libunix.h
parent6af0b4c01f129ecbaf5f0011e1488a03ff686952 (diff)
downloadcrawl-ref-e0e65f6ed5124251c88ce3e08a0a88a644bcc8ed.tar.gz
crawl-ref-e0e65f6ed5124251c88ce3e08a0a88a644bcc8ed.zip
libunix.h: declare itoa and stricmp as extern "C", itoa returns char*
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Diffstat (limited to 'crawl-ref/source/libunix.h')
-rw-r--r--crawl-ref/source/libunix.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/libunix.h b/crawl-ref/source/libunix.h
index 0d6a623d9c..11d5c8a019 100644
--- a/crawl-ref/source/libunix.h
+++ b/crawl-ref/source/libunix.h
@@ -35,12 +35,12 @@ int clrscr(void);
int cprintf(const char *format,...);
int gotoxy_sys(int x, int y);
void fakecursorxy(int x, int y);
-int itoa(int value, char *strptr, int radix);
+extern "C" char *itoa(int value, char *strptr, int radix);
int kbhit(void);
int putch(unsigned char chr);
int putwch(unsigned chr);
void put_colour_ch(int colour, unsigned ch);
-int stricmp(const char *str1, const char *str2);
+extern "C" int stricmp(const char *str1, const char *str2);
int translate_keypad(int keyin);
int wherex(void);
int wherey(void);