comparison dmd/mars.c @ 637:29dc68c949b0

Applied the FreeBSD patch from Ralith, closes ticket #95 , slightly changed but basically the same. Thanx Ralith :)
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Thu, 02 Oct 2008 03:25:46 +0200
parents 12bda38ea366
children 94b01f15814f
comparison
equal deleted inserted replaced
636:9fb1f559d9e9 637:29dc68c949b0
328 global.params.os = OSWindows; 328 global.params.os = OSWindows;
329 #elif linux 329 #elif linux
330 global.params.os = OSLinux; 330 global.params.os = OSLinux;
331 #elif __APPLE__ 331 #elif __APPLE__
332 global.params.os = OSMacOSX; 332 global.params.os = OSMacOSX;
333 #elif __FreeBSD__
334 global.params.os = OSFreeBSD;
333 #else 335 #else
334 #error 336 #error Unsupported OS
335 #endif /* linux */ 337 #endif /* linux */
336 338
337 assert(global.params.os != OSinvalid); 339 assert(global.params.os != OSinvalid);
338 340
339 //VersionCondition::addPredefinedGlobalIdent("D_Bits"); 341 //VersionCondition::addPredefinedGlobalIdent("D_Bits");
841 VersionCondition::addPredefinedGlobalIdent("darwin"); 843 VersionCondition::addPredefinedGlobalIdent("darwin");
842 VersionCondition::addPredefinedGlobalIdent("Posix"); 844 VersionCondition::addPredefinedGlobalIdent("Posix");
843 global.params.tt_os = "-pc-darwin-gnu"; 845 global.params.tt_os = "-pc-darwin-gnu";
844 break; 846 break;
845 847
848 case OSFreeBSD:
849 VersionCondition::addPredefinedGlobalIdent("freebsd");
850 VersionCondition::addPredefinedGlobalIdent("Posix");
851 break;
852
846 default: 853 default:
847 assert(false && "Target OS not supported"); 854 assert(false && "Target OS not supported");
848 } 855 }
849 856
850 857