Changeset 51

Show
Ignore:
Timestamp:
10/31/04 22:15:06 (4 years ago)
Author:
aldacron
Message:

[DerelictSDL]
* added fixes to get the package to compile on Linux

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/DerelictSDL/derelict/sdl/sdl.d

    r46 r51  
    8686private void* getProc(char[] procname) 
    8787{ 
     88    if(hsdl is null) 
     89        printf("EH?!!"); 
    8890    void *symbol = ExeModule_GetSymbol(hsdl, procname); 
    8991    if(symbol is null) 
     
    318320         
    319321    version(Windows) 
    320         hsdl = ExeModule_Load("sdl.dll");    
     322    { 
     323    hsdl = ExeModule_Load("sdl.dll"); 
     324    } 
     325     
     326    version(linux) 
     327    { 
     328    hsdl = ExeModule_Load("libSDL.so"); 
     329    if(hsdl is null) 
     330        hsdl = ExeModule_Load("libSDL-1.2.so.0"); 
     331    } 
     332     
     333    if(hsdl is null) 
     334    { 
     335        throw new Exception("Failed to load the SDL shared library"); 
     336    }    
    321337     
    322338    load(); 
  • trunk/DerelictSDL/derelict/sdl/syswm.d

    r43 r51  
    5353} 
    5454 
     55version(linux) 
     56{ 
     57    struct SDL_SysWMmsg; 
     58    struct SDL_SysWMinfo; 
     59} 
     60 
    5561//============================================================================== 
    5662// FUNCTIONS