From 63e9b3a3a5429d850931e5bfa077bfcef5e06808 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 8 Feb 2007 15:39:09 +0000 Subject: 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 --- crawl-ref/source/libunix.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/libunix.h') 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 -- cgit v1.2.3-54-g00ecf