Changeset 507 for trunk/src


Ignore:
Timestamp:
Sep 15, 2006, 8:31:29 AM (19 years ago)
Author:
bird
Message:

Fixed MSC warnings.

Location:
trunk/src/gmake
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/filedef.h

    r503 r507  
    186186#define ORDINARY_MTIME_MAX ((FILE_TIMESTAMP_S (NEW_MTIME) \
    187187                             << FILE_TIMESTAMP_LO_BITS) \
    188                             + ORDINARY_MTIME_MIN + FILE_TIMESTAMPS_PER_S - 1)
     188                            + ORDINARY_MTIME_MIN + (FILE_TIMESTAMPS_PER_S - 1)) /* bird: MSC overflow fix */
    189189
    190190/* Modtime value to use for `infinitely new'.  We used to get the current time
  • trunk/src/gmake/glob/glob.c

    r503 r507  
    370370  size_t dirlen;
    371371  int status;
    372   int oldcount;
     372  __size_t oldcount; /* bird: correct type. */
    373373
    374374  if (pattern == NULL || pglob == NULL || (flags & ~__GLOB_FLAGS) != 0)
     
    856856         the pattern in each directory found.  */
    857857      glob_t dirs;
    858       register int i;
     858      register __size_t i; /* bird: correct type. */
    859859
    860860      status = glob (dirname,
     
    10061006        {
    10071007          /* Stick the directory on the front of each name.  */
    1008           int ignore = oldcount;
     1008          __size_t ignore = oldcount; /* bird: correct type. */
    10091009
    10101010          if ((flags & GLOB_DOOFFS) && ignore < pglob->gl_offs)
     
    10241024    {
    10251025      /* Append slashes to directory names.  */
    1026       int i;
     1026      __size_t i; /* bird: correct type. */
    10271027      struct stat st;
    10281028      for (i = oldcount; i < pglob->gl_pathc; ++i)
     
    10681068  if (pglob->gl_pathv != NULL)
    10691069    {
    1070       register int i;
     1070      register __size_t i; /* bird: correct type */
    10711071      for (i = 0; i < pglob->gl_pathc; ++i)
    10721072        if (pglob->gl_pathv[i] != NULL)
  • trunk/src/gmake/kmkbuiltin.c

    r377 r507  
    2929#include <stdio.h>
    3030#include <ctype.h>
     31#ifdef _MSC_VER
     32# include <io.h>
     33#endif
    3134#include "kmkbuiltin/err.h"
    3235#include "kmkbuiltin.h"
     
    3841    int         argc;
    3942    char      **argv;
    40     char       *psz;
    4143    int         rc;
    4244
  • trunk/src/gmake/make.h

    r503 r507  
    4141
    4242/* Use prototypes if available.  */
    43 #if defined (__cplusplus) || defined (__STDC__)
     43#if defined (__cplusplus) || defined (__STDC__) || defined WINDOWS32
    4444# undef  PARAMS
    4545# define PARAMS(protos)  protos
Note: See TracChangeset for help on using the changeset viewer.