Changeset 1093 in kBuild
- Timestamp:
- Sep 9, 2007 12:21:19 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kObjCache/kObjCache.c
r1089 r1093 51 51 # ifdef __OS2__ 52 52 # include <unistd.h> 53 # include <sys/wait.h> 53 54 # endif 54 55 # if defined(_MSC_VER) 55 56 # include <direct.h> 56 57 typedef intptr_t pid_t; 58 # endif 59 # ifndef _P_WAIT 60 # define _P_WAIT P_WAIT 61 # endif 62 # ifndef _P_NOWAIT 63 # define _P_NOWAIT P_NOWAIT 57 64 # endif 58 65 #else … … 254 261 static char *AbsPath(const char *pszPath) 255 262 { 263 /** @todo this isn't really working as it should... */ 256 264 char szTmp[PATH_MAX]; 257 #if defined(__OS2__) || defined(__WIN__) 265 #if defined(__OS2__) 266 if ( _fullpath(szTmp, *pszPath ? pszPath : ".", sizeof(szTmp)) 267 && !realpath(pszPath, szTmp)) 268 return xstrdup(pszPath); 269 #elif defined(__WIN__) 258 270 if (!_fullpath(szTmp, *pszPath ? pszPath : ".", sizeof(szTmp))) 259 271 return xstrdup(pszPath); … … 275 287 { 276 288 const char *pszFilename = strchr(pszPath, '\0') - 1; 289 if (pszFilename < pszPath) 290 return pszPath; 277 291 while ( pszFilename > pszPath 278 292 && !IS_SLASH_DRV(pszFilename[-1]))
Note:
See TracChangeset
for help on using the changeset viewer.