comparison 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
comparison
equal deleted inserted replaced
916:5f4a69a53906 917:7e272f2b4fc3
1033 1033
1034 p = FileName::name(p); // strip path 1034 p = FileName::name(p); // strip path
1035 ext = FileName::ext(p); 1035 ext = FileName::ext(p);
1036 if (ext) 1036 if (ext)
1037 { 1037 {
1038 #if TARGET_LINUX 1038 #if POSIX
1039 if (strcmp(ext, global.obj_ext) == 0 || 1039 if (strcmp(ext, global.obj_ext) == 0 ||
1040 strcmp(ext, global.bc_ext) == 0) 1040 strcmp(ext, global.bc_ext) == 0)
1041 #else 1041 #else
1042 if (stricmp(ext, global.obj_ext) == 0 || 1042 if (stricmp(ext, global.obj_ext) == 0 ||
1043 stricmp(ext, global.bc_ext) == 0) 1043 stricmp(ext, global.bc_ext) == 0)
1045 { 1045 {
1046 global.params.objfiles->push(files.data[i]); 1046 global.params.objfiles->push(files.data[i]);
1047 continue; 1047 continue;
1048 } 1048 }
1049 1049
1050 #if TARGET_LINUX || __MINGW32__ 1050 #if POSIX
1051 if (strcmp(ext, "a") == 0) 1051 if (strcmp(ext, "a") == 0)
1052 #elif __MINGW32__
1053 if (stricmp(ext, "a") == 0)
1052 #else 1054 #else
1053 if (stricmp(ext, "lib") == 0) 1055 if (stricmp(ext, "lib") == 0)
1054 #endif 1056 #endif
1055 { 1057 {
1056 global.params.libfiles->push(files.data[i]); 1058 global.params.libfiles->push(files.data[i]);
1061 { 1063 {
1062 global.params.ddocfiles->push(files.data[i]); 1064 global.params.ddocfiles->push(files.data[i]);
1063 continue; 1065 continue;
1064 } 1066 }
1065 1067
1066 #if !TARGET_LINUX 1068 #if !POSIX
1067 if (stricmp(ext, "res") == 0) 1069 if (stricmp(ext, "res") == 0)
1068 { 1070 {
1069 global.params.resfile = (char *)files.data[i]; 1071 global.params.resfile = (char *)files.data[i];
1070 continue; 1072 continue;
1071 } 1073 }