Ignore:
Timestamp:
Jan 19, 2007, 6:57:42 AM (19 years ago)
Author:
bird
Message:

ported printf to MSC.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/kmkbuiltin/mscfakes.h

    r526 r775  
    3131#include <direct.h>
    3232#include <time.h>
     33#include <stdarg.h>
    3334#undef setmode
    3435#include "getopt.h"
     
    8687
    8788#ifndef timerisset
    88 struct timeval 
     89struct timeval
    8990{
    9091    long tv_sec;
    9192    long tv_usec;
    9293};
    93 #endif 
     94#endif
    9495
    95 struct iovec 
     96struct iovec
    9697{
    9798    char *iov_base;
     
    99100};
    100101
     102typedef __int64 intmax_t;
     103typedef unsigned __int64 uintmax_t;
    101104
    102105#define chown(path, uid, gid) 0         /** @todo implement fchmod! */
     
    118121#define readlink(link, buf, size) -1
    119122#define reallocf(old, size) realloc(old, size)
     123intmax_t strtoimax(const char *nptr, char **endptr, int base);
     124int asprintf(char **strp, const char *fmt, ...);
     125int vasprintf(char **strp, const char *fmt, va_list ap);
    120126#if _MSC_VER < 1400
    121127int snprintf(char *buf, size_t size, const char *fmt, ...);
    122128#else
    123129#define snprintf _snprintf
    124 #endif 
     130#endif
    125131size_t strlcpy(char *, const char *, size_t);
    126132int symlink(const char *pszDst, const char *pszLink);
     
    129135
    130136#endif /* _MSC_VER */
    131 #endif 
     137#endif
    132138
Note: See TracChangeset for help on using the changeset viewer.