Ignore:
Timestamp:
Jan 6, 2003, 2:24:23 PM (23 years ago)
Author:
sandervl
Message:

PF: header updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/msvcrt/time.h

    r8207 r9631  
    2222#define __WINE_USE_MSVCRT
    2323
    24 #include "winnt.h"
    25 #include "msvcrt/sys/types.h"      /* For time_t */
     24#ifndef MSVCRT
     25# ifdef USE_MSVCRT_PREFIX
     26#  define MSVCRT(x)    MSVCRT_##x
     27# else
     28#  define MSVCRT(x)    x
     29# endif
     30#endif
    2631
     32#ifndef MSVCRT_WCHAR_T_DEFINED
     33#define MSVCRT_WCHAR_T_DEFINED
     34#ifndef __cplusplus
     35typedef unsigned short MSVCRT(wchar_t);
     36#endif
     37#endif
    2738
    2839#ifndef MSVCRT_SIZE_T_DEFINED
     
    3142#endif
    3243
     44#ifndef MSVCRT_TIME_T_DEFINED
     45typedef long MSVCRT(time_t);
     46#define MSVCRT_TIME_T_DEFINED
     47#endif
     48
     49#ifndef MSVCRT_CLOCK_T_DEFINED
    3350typedef long MSVCRT(clock_t);
     51#define MSVCRT_CLOCK_T_DEFINED
     52#endif
    3453
     54#ifndef NULL
     55#ifdef __cplusplus
     56#define NULL  0
     57#else
     58#define NULL  ((void *)0)
     59#endif
     60#endif
     61
     62#ifndef MSVCRT_TM_DEFINED
     63#define MSVCRT_TM_DEFINED
    3564struct MSVCRT(tm) {
    3665    int tm_sec;
     
    4473    int tm_isdst;
    4574};
    46 
     75#endif /* MSVCRT_TM_DEFINED */
    4776
    4877#ifdef __cplusplus
     
    6998MSVCRT(time_t) MSVCRT(time)(MSVCRT(time_t)*);
    7099
    71 WCHAR*      _wasctime(const struct MSVCRT(tm)*);
    72 MSVCRT(size_t) wcsftime(WCHAR*,MSVCRT(size_t),const WCHAR*,const struct MSVCRT(tm)*);
    73 WCHAR*      _wctime(const MSVCRT(time_t)*);
    74 WCHAR*      _wstrdate(WCHAR*);
    75 WCHAR*      _wstrtime(WCHAR*);
     100#ifndef MSVCRT_WTIME_DEFINED
     101#define MSVCRT_WTIME_DEFINED
     102MSVCRT(wchar_t)*_wasctime(const struct MSVCRT(tm)*);
     103MSVCRT(size_t)  wcsftime(MSVCRT(wchar_t)*,MSVCRT(size_t),const MSVCRT(wchar_t)*,const struct MSVCRT(tm)*);
     104MSVCRT(wchar_t)*_wctime(const MSVCRT(time_t)*);
     105MSVCRT(wchar_t)*_wstrdate(MSVCRT(wchar_t)*);
     106MSVCRT(wchar_t)*_wstrtime(MSVCRT(wchar_t)*);
     107#endif /* MSVCRT_WTIME_DEFINED */
    76108
    77109#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.