Build v3.03 released

Gregor Richards Richards at codu.org
Thu Sep 21 16:11:44 PDT 2006


Derek Parnell wrote:
> On Thu, 21 Sep 2006 11:44:08 -0700, Gregor Richards wrote:
> 
>> In util/fdt.d, the section:
>>
>>      version(Windows) static import opsys = std.c.windows.windows;
>>      version(linux)   static import opsys = std.c.linux.linux;
>>      version(darwin)  static import opsys = std.c.darwin.darwin;
>>      version(Unix)    static import opsys = std.c.unix;
>>      version(Posix)   static import std.string;
>>
>> needs to become:
>>
>>      version(Windows) static import opsys = std.c.windows.windows;
>>      else version(linux)   static import opsys = std.c.linux.linux;
>>      else version(darwin)  static import opsys = std.c.darwin.darwin;
>>      else version(Unix)    static import opsys = std.c.unix;
>>      else version(Posix)   static import std.string;
>>
>> This is because the different platforms aren't mutually exclusive, so 
>> it'll end up importing two modules as opsys, oops :(
> 
> Hmmm...I'll have to check this out a bit more. They ought to be mutually
> exclusive, IMHO.
> 

GNU/Linux on gdc is version(linux), version(Unix) and version(Posix). 
Mac OS X is version(darwin), version(Unix) and version(Posix).

  - Gregor Richards



More information about the Digitalmars-d-announce mailing list