comparison 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
comparison
equal deleted inserted replaced
916:5f4a69a53906 917:7e272f2b4fc3
1014 1014
1015 p = FileName::name(p); // strip path 1015 p = FileName::name(p); // strip path
1016 ext = FileName::ext(p); 1016 ext = FileName::ext(p);
1017 if (ext) 1017 if (ext)
1018 { 1018 {
1019 #if TARGET_LINUX 1019 #if POSIX
1020 if (strcmp(ext, global.obj_ext) == 0 || 1020 if (strcmp(ext, global.obj_ext) == 0 ||
1021 strcmp(ext, global.bc_ext) == 0) 1021 strcmp(ext, global.bc_ext) == 0)
1022 #else 1022 #else
1023 if (stricmp(ext, global.obj_ext) == 0 || 1023 if (stricmp(ext, global.obj_ext) == 0 ||
1024 stricmp(ext, global.bc_ext) == 0) 1024 stricmp(ext, global.bc_ext) == 0)
1026 { 1026 {
1027 global.params.objfiles->push(files.data[i]); 1027 global.params.objfiles->push(files.data[i]);
1028 continue; 1028 continue;
1029 } 1029 }
1030 1030
1031 #if TARGET_LINUX || __MINGW32__ 1031 #if POSIX
1032 if (strcmp(ext, "a") == 0) 1032 if (strcmp(ext, "a") == 0)
1033 #elif __MINGW32__
1034 if (stricmp(ext, "a") == 0)
1033 #else 1035 #else
1034 if (stricmp(ext, "lib") == 0) 1036 if (stricmp(ext, "lib") == 0)
1035 #endif 1037 #endif
1036 { 1038 {
1037 global.params.libfiles->push(files.data[i]); 1039 global.params.libfiles->push(files.data[i]);
1042 { 1044 {
1043 global.params.ddocfiles->push(files.data[i]); 1045 global.params.ddocfiles->push(files.data[i]);
1044 continue; 1046 continue;
1045 } 1047 }
1046 1048
1047 #if !TARGET_LINUX 1049 #if !POSIX
1048 if (stricmp(ext, "res") == 0) 1050 if (stricmp(ext, "res") == 0)
1049 { 1051 {
1050 global.params.resfile = (char *)files.data[i]; 1052 global.params.resfile = (char *)files.data[i];
1051 continue; 1053 continue;
1052 } 1054 }