home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c045 / 2.ddi / INCLUDE / SYS / TIMEB.H$ / TIMEB.bin
Encoding:
Text File  |  1992-01-01  |  1.3 KB  |  81 lines

  1. /***
  2. *sys\timeb.h - definition/declarations for ftime()
  3. *
  4. *    Copyright (c) 1985-1991, 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 defined(_DLL) && !defined(_MT)
  19. #error Cannot define _DLL without _MT
  20. #endif
  21.  
  22. #ifdef _MT
  23. #define _FAR_ __far
  24. #else
  25. #define _FAR_
  26. #endif
  27.  
  28. #if (_MSC_VER <= 600)
  29. #define __cdecl     _cdecl
  30. #define __far       _far
  31. #define __loadds    _loadds
  32. #endif
  33.  
  34. #ifndef _TIME_T_DEFINED
  35. typedef unsigned long time_t;
  36. #define _TIME_T_DEFINED
  37. #endif
  38.  
  39. /* structure returned by ftime system call */
  40.  
  41. #ifndef _TIMEB_DEFINED
  42. #pragma pack(2)
  43.  
  44. struct _timeb {
  45.     time_t time;
  46.     unsigned short millitm;
  47.     short timezone;
  48.     short dstflag;
  49.     };
  50.  
  51. #ifndef __STDC__
  52. /* Non-ANSI name for compatibility */
  53. struct timeb {
  54.     time_t time;
  55.     unsigned short millitm;
  56.     short timezone;
  57.     short dstflag;
  58.     };
  59. #endif
  60.  
  61. #pragma pack()
  62. #define _TIMEB_DEFINED
  63. #endif
  64.  
  65.  
  66. /* function prototypes */
  67.  
  68. void _FAR_ __cdecl _ftime(struct _timeb _FAR_ *);
  69.  
  70. #ifndef __STDC__
  71. /* Non-ANSI name for compatibility */
  72. void _FAR_ __cdecl ftime(struct timeb _FAR_ *);
  73. #endif
  74.  
  75. #ifdef __cplusplus
  76. }
  77. #endif
  78.  
  79. #define _INC_TIMEB
  80. #endif    /* _INC_TIMEB */
  81.