FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

util/fdt.d on UNIXen

 
Post new topic   Reply to topic     Forum Index -> Build
View previous topic :: View next topic  
Author Message
Gregor



Joined: 05 May 2006
Posts: 72
Location: Portland, OR

PostPosted: Thu Sep 28, 2006 5:05 pm    Post subject: util/fdt.d on UNIXen Reply with quote

I think I already posted this to the NG, but it's fairly important so I'll post it here.

In util/fdt.d are the lines:

Code:

    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;


This fails on GNU/Linux and probably Mac OS X, because these situations need to be else'd - they're mutually exclusive:

Code:

    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;


Otherwise it'll attempt to import multiple modules as "opsys", and get:

Code:

util/fdt.d:72: static import util.fdt.opsys package and module have the same name
util/fdt.d:72: module unix cannot read file 'std/c/unix.d'
util/fdt.d:72: static import util.fdt.opsys package and module have the same name
util/fdt.d:72: module unix cannot read file 'std/c/unix.d'
util/fdt.d:72: static import util.fdt.opsys package and module have the same name
util/fdt.d:72: module unix cannot read file 'std/c/unix.d'


Also, isn't that std.c.unix.unix? I have a std/c/unix/unix.d, but no std/c/unix.d.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> Build All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group