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.h | |
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.h')
-rw-r--r-- | crawl-ref/source/libunix.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/libunix.h b/crawl-ref/source/libunix.h index 52ecc4f72b..bcbb864e85 100644 --- a/crawl-ref/source/libunix.h +++ b/crawl-ref/source/libunix.h @@ -4,9 +4,10 @@ // Some replacement routines missing in gcc +#ifndef O_BINARY #define O_BINARY O_RDWR +#endif -char *strlwr(char *str); char getche(void); void message_out(int mline, int colour, const char *str, int firstcol = 0, @@ -56,6 +57,7 @@ extern "C" int getch(void); int noecho(void); int echo(void); + char *strlwr(char *str); } #endif |