VirtualBox

Changeset 11888 in vbox for trunk/src


Ignore:
Timestamp:
Aug 31, 2008 6:01:06 PM (16 years ago)
Author:
vboxsync
Message:

IPRT: added RTLdrGetSuff.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette