Mercurial > projects > ldc
changeset 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 | 5f4a69a53906 |
children | a4fcc13da3cd |
files | dmd/mars.c dmd2/mars.c |
diffstat | 2 files changed, 10 insertions(+), 6 deletions(-) [+] |
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];
--- 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];