Changeset 520 for trunk/src/gmake/w32/pathstuff.c
- Timestamp:
- Sep 16, 2006, 6:56:25 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/w32/pathstuff.c
r508 r520 16 16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ 17 17 18 #include <Windows.h> 18 #include <Windows.h> /* bird */ 19 #include <stdio.h> /* bird */ 19 20 #include <string.h> 20 21 #include <stdlib.h> 21 #include <stdio.h>22 22 #include "make.h" 23 23 #include "pathstuff.h" 24 25 24 26 25 /* … … 83 82 } 84 83 85 /* 84 /* 86 85 * Corrects the case of a path. 87 86 * Expects a fullpath! 88 */ 89 void w32_fixcase(char *pszPath) 87 * Added by bird for the $(abspath ) function and w32ify 88 */ 89 void 90 w32_fixcase(char *pszPath) 90 91 { 91 92 #define my_assert(expr) \ … … 211 212 strncpy(w32_path, filename, sizeof (w32_path)); 212 213 213 w32_fixcase(w32_path); 214 w32_fixcase(w32_path); /* bird */ 214 215 215 216 for (p = w32_path; p && *p; p++) … … 233 234 } 234 235 235 /* Workaround for directory names with trailing slashes. */ 236 /* 237 * Workaround for directory names with trailing slashes. 238 * Added by bird reasons stated. 239 */ 236 240 int 237 241 stat(const char *path, struct stat *st) 238 242 { 239 int rc = _stat(path, st);243 int rc = _stat(path, (struct _stat *)st); 240 244 if ( rc != 0 241 245 && errno == ENOENT … … 251 255 tmp[len_path + 1] = '\0'; 252 256 errno = 0; 253 rc = _stat(tmp, st);257 rc = _stat(tmp, (struct _stat *)st); 254 258 if ( rc == 0 255 259 && !S_ISDIR(st->st_mode))
Note:
See TracChangeset
for help on using the changeset viewer.