Changeset 503 for trunk/src/gmake/w32/pathstuff.c
- Timestamp:
- Sep 15, 2006, 7:09:38 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gmake/w32/pathstuff.c
r304 r503 1 #include <windows.h> 1 /* Path conversion for Windows pathnames. 2 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 3 2006 Free Software Foundation, Inc. 4 This file is part of GNU Make. 5 6 GNU Make is free software; you can redistribute it and/or modify it under the 7 terms of the GNU General Public License as published by the Free Software 8 Foundation; either version 2, or (at your option) any later version. 9 10 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY 11 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 12 A PARTICULAR PURPOSE. See the GNU General Public License for more details. 13 14 You should have received a copy of the GNU General Public License along with 15 GNU Make; see the file COPYING. If not, write to the Free Software 16 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. */ 17 18 #include <Windows.h> 2 19 #include <string.h> 3 20 #include <stdlib.h> … … 206 223 getcwd_fs(char* buf, int len) 207 224 { 208 char *p ;209 210 if (p = getcwd(buf, len)) {225 char *p = getcwd(buf, len); 226 227 if (p) { 211 228 char *q = w32ify(buf, 0); 212 229 strncpy(buf, q, len);
Note:
See TracChangeset
for help on using the changeset viewer.