Changeset 2199


Ignore:
Timestamp:
Dec 25, 2006, 8:45:21 PM (14 years ago)
Author:
orlov
Message:
  • Cosmetic changes to satisfy both VC++ 2003 and VC++ 2005.
Location:
to-imperative/trunk/c++
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • to-imperative/trunk/c++/lib/File/last_modified.cc

    r2187 r2199  
    1111
    1212RF_FUNC (Last_m_Modified, (RF_ARG _fname;;), (RF_RES _res;;))
    13   struct stat buf;
    1413  WString ws = (WString)_fname;
    1514#ifndef WINDOWS
     
    2120  wcstombs(fname, ws.get_data(), len + 1);
    2221  fname[len] = 0;
     22  struct stat buf;
    2323  if (stat(fname, &buf)) {
    2424#else
     25  struct _stat buf;
    2526  if (_wstat(ws.get_data(), &buf)) {
    2627#endif
  • to-imperative/trunk/c++/libp++/pxx_common.hh

    r2187 r2199  
    5353#define snprintf             _snprintf
    5454#define alloca               _alloca
    55 #define stat                 _stat
    5655#define __PRETTY_FUNCTION__  __FUNCTION__
    5756#define sleep                ::Sleep
     
    106105#endif
    107106
    108 #define UINT32_MAX             _UI32_MAX
    109 #define UINT64_MAX             _UI64_MAX
     107#ifdef _UI32_MAX
     108# define UINT32_MAX             _UI32_MAX
     109#else
     110# define UINT32_MAX             (4294967295U)
     111#endif
     112#ifdef _UI64_MAX
     113# define UINT64_MAX             _UI64_MAX
     114#else
     115# define UINT64_MAX             (__UINT64_C(18446744073709551615))
     116#endif
     117
     118/* Limit of `size_t' type.  */
     119#ifndef SIZE_MAX
     120#if __WIN64
     121# define SIZE_MAX              (18446744073709551615UL)
     122#else
     123# define SIZE_MAX              (4294967295U)
     124#endif
     125#endif
    110126
    111127#define F_OK 0
Note: See TracChangeset for help on using the changeset viewer.