Mercurial > projects > ldc
diff dmd/mars.c @ 571:cbd6c8073a32
Changed all '#if linux || __APPLE__' to '#if POSIX' so we can support other platforms too, thanx for the suggestion anders.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 02 Sep 2008 23:10:12 +0200 |
parents | f75b16f1e405 |
children | 91d436eaedee |
line wrap: on
line diff
--- a/dmd/mars.c Tue Sep 02 19:14:37 2008 +0200 +++ b/dmd/mars.c Tue Sep 02 23:10:12 2008 +0200 @@ -19,7 +19,7 @@ #include <dos.h> #endif -#if linux || __APPLE__ +#if POSIX #include <errno.h> #elif _WIN32 #include <windows.h> @@ -60,7 +60,7 @@ bc_ext = "bc"; #if _WIN32 nativeobj_ext = "obj"; -#elif linux || __APPLE__ +#elif POSIX nativeobj_ext = "o"; #else #error "fix this" @@ -344,7 +344,7 @@ #if _WIN32 inifile(global.params.argv0, "llvmdc.ini"); -#elif linux || __APPLE__ +#elif POSIX inifile(global.params.argv0, "llvmdc.conf"); #else #error