Changeset 3582 for trunk/kStuff/kLdr/kLdrDyldFind.c
- Timestamp:
- Sep 3, 2007, 12:26:42 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kStuff/kLdr/kLdrDyldFind.c
r3579 r3582 30 30 * Header Files * 31 31 *******************************************************************************/ 32 #ifdef __OS2__ 32 #include <k/kLdr.h> 33 #include "kLdrInternal.h" 34 35 #if K_OS == K_OS_OS2 33 36 # define INCL_BASE 34 37 # define INCL_ERRORS … … 47 50 # define QHINF_MAPSEL 8 /* NE only */ 48 51 49 #elif defined(__WIN__) 52 #elif K_OS == K_OS_WINDOWS 53 # undef IMAGE_DOS_SIGNATURE 54 # undef IMAGE_NT_SIGNATURE 50 55 # include <Windows.h> 56 51 57 #endif 52 53 #include <k/kLdr.h>54 #include "kLdrInternal.h"55 58 56 59 … … 236 239 * The OS/2 search parameters. 237 240 */ 238 #if def __OS2__241 #if K_OS == K_OS_OS2 239 242 rc = DosQueryHeaderInfo(NULLHANDLE, 0, kLdrDyldOS2Libpath, sizeof(kLdrDyldOS2Libpath), QHINF_LIBPATH); 240 243 if (rc) … … 266 269 * The windows search parameters. 267 270 */ 268 #if defined(__WIN__)271 #if K_OS == K_OS_WINDOWS 269 272 cch = GetSystemDirectory(kLdrDyldWindowsSystemDir, sizeof(kLdrDyldWindowsSystemDir)); 270 273 if (cch >= sizeof(kLdrDyldWindowsSystemDir)) … … 320 323 321 324 322 #elif defined(__WIN__)325 #elif K_OS == K_OS_WINDOWS 323 326 DWORD dwSize = GetModuleFileName(NULL /* the executable */, kLdrDyldAppDir, sizeof(kLdrDyldAppDir)); 324 327 if (dwSize > 0) … … 665 668 psz = &s_szFilename[cchPath]; 666 669 if (psz[-1] != '/' 667 #if defined(__OS2__) || defined(__WIN__)670 #if K_OS == K_OS_OS2 || K_OS == K_OS_WINDOWS 668 671 && psz[-1] != '\\' 669 672 && psz[-1] != ':' … … 737 740 while ( *pszEnd != '\0' 738 741 && *pszEnd != ';' 739 #if defined(__OS2__) || defined(__WIN__)742 #if K_OS == K_OS_OS2 || K_OS == K_OS_WINDOWS 740 743 && ( *pszEnd != ':' 741 744 || ( pszEnd - psz == 1 … … 790 793 #if defined(__OS2__) 791 794 *penmSearch = KLDRDYLD_SEARCH_OS2; 792 #elif defined(__WIN__)795 #elif K_OS == K_OS_WINDOWS 793 796 *penmSearch = KLDRDYLD_SEARCH_WINDOWS; 794 797 #else
Note:
See TracChangeset
for help on using the changeset viewer.