Mercurial > projects > ldc
diff dmd2/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 | 1d9fe5e2a13c |
children | 0749c0757a43 |
line wrap: on
line diff
--- a/dmd2/mars.c Mon Feb 02 00:34:22 2009 +0100 +++ b/dmd2/mars.c Mon Feb 02 00:58:36 2009 +0100 @@ -1035,7 +1035,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 @@ -1047,8 +1047,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 @@ -1063,7 +1065,7 @@ continue; } -#if !TARGET_LINUX +#if !POSIX if (stricmp(ext, "res") == 0) { global.params.resfile = (char *)files.data[i];