From: fredb Date: Thu, 19 Feb 2009 20:41:36 +0000 (+0000) Subject: Fix to compile with MSC X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fdd3c77298779143eba8903426c7f275725af9ba;p=simgear.git Fix to compile with MSC --- diff --git a/simgear/nasal/iolib.c b/simgear/nasal/iolib.c index 24886714..37b6dd50 100644 --- a/simgear/nasal/iolib.c +++ b/simgear/nasal/iolib.c @@ -195,7 +195,7 @@ static naRef f_readln(naContext ctx, naRef me, int argc, naRef* args) return result; } -#ifdef _WIN32 +#ifdef _MSC_VER #define S_ISREG(m) (((m)&_S_IFMT)==_S_IFREG) #define S_ISDIR(m) (((m)&_S_IFMT)==_S_IFDIR) #define S_ISCHR(m) (((m)&_S_IFMT)==_S_IFCHR) @@ -203,6 +203,7 @@ static naRef f_readln(naContext ctx, naRef me, int argc, naRef* args) #define S_ISBLK(m) 0 #define S_ISLNK(m) 0 #define S_ISSOCK(m) 0 +typedef unsigned short mode_t; #endif static naRef ftype(naContext ctx, mode_t m) {