home *** CD-ROM | disk | FTP | other *** search
/ Beginning C++ Through Gam…rogramming (2nd Edition) / BCGP2E.ISO / bloodshed / devcpp-4.9.9.2_setup.exe / timeb.h < prev    next >
C/C++ Source or Header  |  2005-01-29  |  1KB  |  75 lines

  1. /*
  2.  * timeb.h
  3.  * This file has no copyright assigned and is placed in the Public Domain.
  4.  * This file is a part of the mingw-runtime package.
  5.  * No warranty is given; refer to the file DISCLAIMER within the package.
  6.  *
  7.  * Support for the UNIX System V ftime system call.
  8.  *
  9.  */
  10.  
  11. #ifndef    _TIMEB_H_
  12. #define    _TIMEB_H_
  13.  
  14. /* All the headers include this file. */
  15. #include <_mingw.h>
  16. #include <sys/types.h>
  17.  
  18. #ifndef    RC_INVOKED
  19.  
  20. /*
  21.  * TODO: Structure not tested.
  22.  */
  23. struct _timeb
  24. {
  25.     long    time;
  26.     short    millitm;
  27.     short    timezone;
  28.     short    dstflag;
  29. };
  30.  
  31. #ifndef    _NO_OLDNAMES
  32. /*
  33.  * TODO: Structure not tested.
  34.  */
  35. struct timeb
  36. {
  37.     long    time;
  38.     short    millitm;
  39.     short    timezone;
  40.     short    dstflag;
  41. };
  42. #endif
  43.  
  44. struct __timeb64
  45. {
  46.     __time64_t time;
  47.     short millitm;
  48.     short timezone;
  49.     short dstflag;
  50. };
  51.  
  52. #ifdef    __cplusplus
  53. extern "C" {
  54. #endif
  55.  
  56. /* TODO: Not tested. */
  57. _CRTIMP void __cdecl    _ftime (struct _timeb*);
  58.  
  59. #ifndef    _NO_OLDNAMES
  60. _CRTIMP void __cdecl    ftime (struct timeb*);
  61. #endif    /* Not _NO_OLDNAMES */
  62.  
  63. /* This requires newer versions of msvcrt.dll (6.10 or higher).  */ 
  64. #if __MSVCRT_VERSION__ >= 0x0601
  65. _CRTIMP void __cdecl    _ftime64 (struct __timeb64*);
  66. #endif /* __MSVCRT_VERSION__ >= 0x0601 */
  67.  
  68. #ifdef    __cplusplus
  69. }
  70. #endif
  71.  
  72. #endif    /* Not RC_INVOKED */
  73.  
  74. #endif    /* Not _TIMEB_H_ */
  75.