Ignore:
Timestamp:
Sep 16, 2006, 6:56:25 AM (19 years ago)
Author:
bird
Message:

Cleaning up the modifications. Changes are now either configurable or marked, and dead stuff has been removed (dll shell).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/w32/pathstuff.c

    r508 r520  
    1616Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.  */
    1717
    18 #include <Windows.h>
     18#include <Windows.h> /* bird */
     19#include <stdio.h>   /* bird */
    1920#include <string.h>
    2021#include <stdlib.h>
    21 #include <stdio.h>
    2222#include "make.h"
    2323#include "pathstuff.h"
    24 
    2524
    2625/*
     
    8382}
    8483
    85 /*
     84/* 
    8685 * Corrects the case of a path.
    8786 * Expects a fullpath!
    88  */
    89 void w32_fixcase(char *pszPath)
     87 * Added by bird for the $(abspath ) function and w32ify
     88 */
     89void
     90w32_fixcase(char *pszPath)
    9091{
    9192#define my_assert(expr) \
     
    211212        strncpy(w32_path, filename, sizeof (w32_path));
    212213
    213     w32_fixcase(w32_path);
     214    w32_fixcase(w32_path); /* bird */
    214215
    215216    for (p = w32_path; p && *p; p++)
     
    233234}
    234235
    235 /* Workaround for directory names with trailing slashes. */
     236/*
     237 * Workaround for directory names with trailing slashes.
     238 * Added by bird reasons stated.
     239 */
    236240int
    237241stat(const char *path, struct stat *st)
    238242{
    239     int rc = _stat(path, st);
     243    int rc = _stat(path, (struct _stat *)st);
    240244    if (    rc != 0
    241245        &&  errno == ENOENT
     
    251255            tmp[len_path + 1] = '\0';
    252256            errno = 0;
    253             rc = _stat(tmp, st);
     257            rc = _stat(tmp, (struct _stat *)st);
    254258            if (    rc == 0
    255259                &&  !S_ISDIR(st->st_mode))
Note: See TracChangeset for help on using the changeset viewer.