diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-02-08 15:39:09 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-02-08 15:39:09 +0000 |
commit | 63e9b3a3a5429d850931e5bfa077bfcef5e06808 (patch) | |
tree | d6bdda815c17541cd51a04850d558afef84893d4 /crawl-ref/source/libunix.cc | |
parent | f8f72027366e7d83c05f896bd9bf945a55bc0a5e (diff) | |
download | crawl-ref-63e9b3a3a5429d850931e5bfa077bfcef5e06808.tar.gz crawl-ref-63e9b3a3a5429d850931e5bfa077bfcef5e06808.zip |
Fix compile breaking on cygwin's massively odd gcc 3.4.4.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@940 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r-- | crawl-ref/source/libunix.cc | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index 14c6044517..3eb398237b 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -389,18 +389,6 @@ int itoa(int value, char *strptr, int radix) } -// Convert string to lowercase. -char *strlwr(char *str) -{ - unsigned int i; - - for (i = 0; i < strlen(str); i++) - str[i] = tolower(str[i]); - - return (str); -} - - int cprintf(const char *format,...) { int i; @@ -704,3 +692,16 @@ int kbhit() return (i); } + +extern "C" { + // Convert string to lowercase. + char *strlwr(char *str) + { + unsigned int i; + + for (i = 0; i < strlen(str); i++) + str[i] = tolower(str[i]); + + return (str); + } +} |