summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/libunix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r--crawl-ref/source/libunix.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index 4f1f3c0d65..03c1631b9a 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -626,7 +626,7 @@ void unixcurses_shutdown()
/* Convert value to string */
-int itoa(int value, char *strptr, int radix)
+extern "C" char *itoa(int value, char *strptr, int radix)
{
unsigned int bitmask = 32768;
int ctr = 0;
@@ -661,7 +661,7 @@ int itoa(int value, char *strptr, int radix)
strptr[ctr] = (char) NULL;
}
- return (OK); /* Me? Fail? Nah. */
+ return strptr;
}
int cprintf(const char *format,...)
@@ -1131,7 +1131,7 @@ int wherey()
}
-int stricmp( const char *str1, const char *str2 )
+extern "C" int stricmp( const char *str1, const char *str2 )
{
return (strcmp(str1, str2));
}