comparison dmd/mars.c @ 571:cbd6c8073a32

Changed all '#if linux || __APPLE__' to '#if POSIX' so we can support other platforms too, thanx for the suggestion anders.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 02 Sep 2008 23:10:12 +0200
parents f75b16f1e405
children 91d436eaedee
comparison
equal deleted inserted replaced
568:f75b16f1e405 571:cbd6c8073a32
17 17
18 #if __DMC__ 18 #if __DMC__
19 #include <dos.h> 19 #include <dos.h>
20 #endif 20 #endif
21 21
22 #if linux || __APPLE__ 22 #if POSIX
23 #include <errno.h> 23 #include <errno.h>
24 #elif _WIN32 24 #elif _WIN32
25 #include <windows.h> 25 #include <windows.h>
26 #endif 26 #endif
27 27
58 obj_ext = "bc"; 58 obj_ext = "bc";
59 ll_ext = "ll"; 59 ll_ext = "ll";
60 bc_ext = "bc"; 60 bc_ext = "bc";
61 #if _WIN32 61 #if _WIN32
62 nativeobj_ext = "obj"; 62 nativeobj_ext = "obj";
63 #elif linux || __APPLE__ 63 #elif POSIX
64 nativeobj_ext = "o"; 64 nativeobj_ext = "o";
65 #else 65 #else
66 #error "fix this" 66 #error "fix this"
67 #endif 67 #endif
68 68
342 //VersionCondition::addPredefinedGlobalIdent("D_Bits"); 342 //VersionCondition::addPredefinedGlobalIdent("D_Bits");
343 VersionCondition::addPredefinedGlobalIdent("all"); 343 VersionCondition::addPredefinedGlobalIdent("all");
344 344
345 #if _WIN32 345 #if _WIN32
346 inifile(global.params.argv0, "llvmdc.ini"); 346 inifile(global.params.argv0, "llvmdc.ini");
347 #elif linux || __APPLE__ 347 #elif POSIX
348 inifile(global.params.argv0, "llvmdc.conf"); 348 inifile(global.params.argv0, "llvmdc.conf");
349 #else 349 #else
350 #error 350 #error
351 #endif 351 #endif
352 getenv_setargv("DFLAGS", &argc, &argv); 352 getenv_setargv("DFLAGS", &argc, &argv);