Changeset 230

Show
Ignore:
Timestamp:
02/24/07 23:07:50 (1 year ago)
Author:
aldacron
Message:

[DerelictUtil?]
* loader.d now uses internal declarations for libdl so that there is no dependence upon linux modules from Phobos or Tango

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/DerelictUtil/derelict/util/loader.d

    r224 r230  
    278278    else version(Nix) 
    279279    { 
    280         version(linux) 
    281         { 
    282             private import std.c.linux.linux; 
    283         } 
    284         else 
    285         { 
    286             extern(C) 
    287             { 
    288                 /* From <dlfcn.h> 
    289                 *  See http://www.opengroup.org/onlinepubs/007908799/xsh/dlsym.html 
    290                 */ 
    291  
    292                 const int RTLD_NOW = 2; 
    293  
    294                 void *dlopen(char* file, int mode); 
    295                 int dlclose(void* handle); 
    296                 void *dlsym(void* handle, char* name); 
    297                 char* dlerror(); 
    298             } 
     280        extern(C) 
     281        { 
     282            /* From <dlfcn.h> 
     283            *  See http://www.opengroup.org/onlinepubs/007908799/xsh/dlsym.html 
     284            */ 
     285 
     286            const int RTLD_NOW = 2; 
     287 
     288            void *dlopen(char* file, int mode); 
     289            int dlclose(void* handle); 
     290            void *dlsym(void* handle, char* name); 
     291            char* dlerror(); 
    299292        } 
    300293