diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-09-07 14:29:09 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2011-09-07 14:29:09 +0200 |
commit | 05cc9a52990d057334ada92bcc8d3723da3725c7 (patch) | |
tree | ab79a40f768eee1eeffcf04a8408017c3a0ba44f /crawl-ref/source/libunix.cc | |
parent | eeb062edcdea166aa2a90874f272a440b7fa9941 (diff) | |
download | crawl-ref-05cc9a52990d057334ada92bcc8d3723da3725c7.tar.gz crawl-ref-05cc9a52990d057334ada92bcc8d3723da3725c7.zip |
Get rid of a nasty hack around improper includes.
Why the original coder did that instead of actually including the system
headers is beyond me.
Diffstat (limited to 'crawl-ref/source/libunix.cc')
-rw-r--r-- | crawl-ref/source/libunix.cc | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index d76faa4976..dcab9a23e1 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -795,15 +795,13 @@ bool kbhit() } } -extern "C" { - // Convert string to lowercase. - char *strlwr(char *str) - { - unsigned int i; +// Convert string to lowercase. +char *strlwr(char *str) +{ + unsigned int i; - for (i = 0; i < strlen(str); i++) - str[i] = tolower(str[i]); + for (i = 0; i < strlen(str); i++) + str[i] = tolower(str[i]); - return (str); - } + return (str); } |