Ignore:
Timestamp:
Sep 3, 2007, 12:26:42 AM (18 years ago)
Author:
bird
Message:

WIN* DARWIN and OS2 removal.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kStuff/kLdr/kLdrDyldFind.c

    r3579 r3582  
    3030*   Header Files                                                               *
    3131*******************************************************************************/
    32 #ifdef __OS2__
     32#include <k/kLdr.h>
     33#include "kLdrInternal.h"
     34
     35#if K_OS == K_OS_OS2
    3336# define INCL_BASE
    3437# define INCL_ERRORS
     
    4750# define QHINF_MAPSEL        8 /* NE only */
    4851
    49 #elif defined(__WIN__)
     52#elif K_OS == K_OS_WINDOWS
     53# undef IMAGE_DOS_SIGNATURE
     54# undef IMAGE_NT_SIGNATURE
    5055# include <Windows.h>
     56
    5157#endif
    52 
    53 #include <k/kLdr.h>
    54 #include "kLdrInternal.h"
    5558
    5659
     
    236239     * The OS/2 search parameters.
    237240     */
    238 #ifdef __OS2__
     241#if K_OS == K_OS_OS2
    239242    rc = DosQueryHeaderInfo(NULLHANDLE, 0, kLdrDyldOS2Libpath, sizeof(kLdrDyldOS2Libpath), QHINF_LIBPATH);
    240243    if (rc)
     
    266269     * The windows search parameters.
    267270     */
    268 #if defined(__WIN__)
     271#if K_OS == K_OS_WINDOWS
    269272    cch = GetSystemDirectory(kLdrDyldWindowsSystemDir, sizeof(kLdrDyldWindowsSystemDir));
    270273    if (cch >= sizeof(kLdrDyldWindowsSystemDir))
     
    320323
    321324
    322 #elif defined(__WIN__)
     325#elif K_OS == K_OS_WINDOWS
    323326        DWORD dwSize = GetModuleFileName(NULL /* the executable */, kLdrDyldAppDir, sizeof(kLdrDyldAppDir));
    324327        if (dwSize > 0)
     
    665668    psz = &s_szFilename[cchPath];
    666669    if (psz[-1] != '/'
    667 #if defined(__OS2__) || defined(__WIN__)
     670#if K_OS == K_OS_OS2 || K_OS == K_OS_WINDOWS
    668671        && psz[-1] != '\\'
    669672        && psz[-1] != ':'
     
    737740        while (     *pszEnd != '\0'
    738741               &&   *pszEnd != ';'
    739 #if defined(__OS2__) || defined(__WIN__)
     742#if K_OS == K_OS_OS2 || K_OS == K_OS_WINDOWS
    740743               && (     *pszEnd != ':'
    741744                   ||   (   pszEnd - psz == 1
     
    790793#if defined(__OS2__)
    791794        *penmSearch = KLDRDYLD_SEARCH_OS2;
    792 #elif defined(__WIN__)
     795#elif K_OS == K_OS_WINDOWS
    793796        *penmSearch = KLDRDYLD_SEARCH_WINDOWS;
    794797#else
Note: See TracChangeset for help on using the changeset viewer.