home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK4 / INCLUDE / SYS / TIMEB.H$ / TIMEB
Encoding:
Text File  |  1991-11-06  |  1.1 KB  |  70 lines

  1. /***
  2. *sys\timeb.h - definition/declarations for ftime()
  3. *
  4. *    Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
  5. *
  6. *Purpose:
  7. *    This file define the ftime() function and the types it uses.
  8. *    [System V]
  9. *
  10. ****/
  11.  
  12. #ifndef _INC_TIMEB
  13.  
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17.  
  18. #if (_MSC_VER <= 600)
  19. #define __cdecl     _cdecl
  20. #define __far       _far
  21. #endif
  22.  
  23. #ifndef _TIME_T_DEFINED
  24. typedef unsigned long time_t;
  25. #define _TIME_T_DEFINED
  26. #endif
  27.  
  28. /* structure returned by ftime system call */
  29.  
  30. #ifndef _TIMEB_DEFINED
  31. #pragma pack(2)
  32.  
  33. struct _timeb {
  34.     time_t time;
  35.     unsigned short millitm;
  36.     short timezone;
  37.     short dstflag;
  38.     };
  39.  
  40. #ifndef __STDC__
  41. /* Non-ANSI name for compatibility */
  42. struct timeb {
  43.     time_t time;
  44.     unsigned short millitm;
  45.     short timezone;
  46.     short dstflag;
  47.     };
  48. #endif
  49.  
  50. #pragma pack()
  51. #define _TIMEB_DEFINED
  52. #endif
  53.  
  54.  
  55. /* function prototypes */
  56.  
  57. void __cdecl _ftime(struct _timeb *);
  58.  
  59. #ifndef __STDC__
  60. /* Non-ANSI name for compatibility */
  61. void __cdecl ftime(struct timeb *);
  62. #endif
  63.  
  64. #ifdef __cplusplus
  65. }
  66. #endif
  67.  
  68. #define _INC_TIMEB
  69. #endif    /* _INC_TIMEB */
  70.