VirtualBox

Changeset 11888

Show
Ignore:
Timestamp:
08/31/08 20:01:06 (3 months ago)
Author:
vboxsync
Message:

IPRT: added RTLdrGetSuff.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/ldr.h

    r8245 r11888  
    4242__BEGIN_DECLS 
    4343 
     44 
     45/** 
     46 * Gets the default file suffix for DLL/SO/DYLIB/whatever. 
     47 * 
     48 * @returns The stuff (readonly). 
     49 */ 
     50RTDECL(const char *) RTLdrGetSuff(void); 
    4451 
    4552/** 
  • trunk/src/VBox/Runtime/common/ldr/ldrNative.cpp

    r8245 r11888  
    215215    return rc; 
    216216} 
     217 
     218 
     219/** 
     220 * Gets the default file suffix for DLL/SO/DYLIB/whatever. 
     221 * 
     222 * @returns The stuff (readonly). 
     223 */ 
     224RTDECL(const char *) RTLdrGetSuff(void) 
     225{ 
     226#if defined(RT_OS_OS2) || defined(RT_OS_WINDOWS) 
     227    static const char s_szSuff[] = ".DLL"; 
     228#elif defined(RT_OS_L4) 
     229    static const char s_szSuff[] = ".s.so"; 
     230#elif defined(RT_OS_DARWIN) 
     231    static const char s_szSuff[] = ".dylib"; 
     232#else 
     233    static const char s_szSuff[] = ".so"; 
     234#endif 
     235 
     236    return s_szSuff; 
     237} 
     238 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy