Mercurial > projects > ldc
diff dmd/mars.c @ 917:7e272f2b4fc3
Removed use of TARGET_LINUX and replaced with POSIX, fixes bug [172]
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 02 Feb 2009 00:58:36 +0100 |
parents | 52dad07846be |
children | 545f54041d91 |
line wrap: on
line diff
--- a/dmd/mars.c Mon Feb 02 00:34:22 2009 +0100 +++ b/dmd/mars.c Mon Feb 02 00:58:36 2009 +0100 @@ -1016,7 +1016,7 @@ ext = FileName::ext(p); if (ext) { -#if TARGET_LINUX +#if POSIX if (strcmp(ext, global.obj_ext) == 0 || strcmp(ext, global.bc_ext) == 0) #else @@ -1028,8 +1028,10 @@ continue; } -#if TARGET_LINUX || __MINGW32__ +#if POSIX if (strcmp(ext, "a") == 0) +#elif __MINGW32__ + if (stricmp(ext, "a") == 0) #else if (stricmp(ext, "lib") == 0) #endif @@ -1044,7 +1046,7 @@ continue; } -#if !TARGET_LINUX +#if !POSIX if (stricmp(ext, "res") == 0) { global.params.resfile = (char *)files.data[i];