Mercurial > projects > ldc
diff dmd/mars.c @ 535:f79bbd1d0b27
Add __APPLE__ to most #if linux compile time switches.
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sun, 24 Aug 2008 16:54:06 +0200 |
parents | 7e2867ed70d9 |
children | 0d2db7efa105 |
line wrap: on
line diff
--- a/dmd/mars.c Sun Aug 24 16:22:58 2008 +0200 +++ b/dmd/mars.c Sun Aug 24 16:54:06 2008 +0200 @@ -19,7 +19,7 @@ #include <dos.h> #endif -#if linux +#if linux || __APPLE__ #include <errno.h> #elif _WIN32 #include <windows.h> @@ -60,7 +60,7 @@ bc_ext = "bc"; #if _WIN32 nativeobj_ext = "obj"; -#elif linux +#elif linux || __APPLE__ nativeobj_ext = "o"; #else #error "fix this" @@ -323,7 +323,7 @@ #if _WIN32 inifile(global.params.argv0, "llvmdc.ini"); -#elif linux +#elif linux || __APPLE__ inifile(global.params.argv0, "llvmdc.conf"); #else #error