Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
1.9 KiB

  1. /***
  2. *sys/timeb.h - definition/declarations for _ftime()
  3. *
  4. * Copyright (c) 1985-1997, 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. * [Public]
  11. *
  12. ****/
  13. #if _MSC_VER > 1000
  14. #pragma once
  15. #endif
  16. #ifndef _INC_TIMEB
  17. #define _INC_TIMEB
  18. #if !defined(_WIN32) && !defined(_MAC)
  19. #error ERROR: Only Mac or Win32 targets supported!
  20. #endif
  21. #ifdef _MSC_VER
  22. #pragma pack(push,8)
  23. #endif /* _MSC_VER */
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /* Define _CRTIMP */
  28. #ifndef _CRTIMP
  29. #ifdef _DLL
  30. #define _CRTIMP __declspec(dllimport)
  31. #else /* ndef _DLL */
  32. #define _CRTIMP
  33. #endif /* _DLL */
  34. #endif /* _CRTIMP */
  35. /* Define __cdecl for non-Microsoft compilers */
  36. #if ( !defined(_MSC_VER) && !defined(__cdecl) )
  37. #define __cdecl
  38. #endif
  39. /* Define _CRTAPI1 (for compatibility with the NT SDK) */
  40. #ifndef _CRTAPI1
  41. #if _MSC_VER >= 800 && _M_IX86 >= 300
  42. #define _CRTAPI1 __cdecl
  43. #else
  44. #define _CRTAPI1
  45. #endif
  46. #endif
  47. #ifndef _TIME_T_DEFINED
  48. typedef long time_t;
  49. #define _TIME_T_DEFINED
  50. #endif
  51. /* Structure returned by _ftime system call */
  52. #ifndef _TIMEB_DEFINED
  53. struct _timeb {
  54. time_t time;
  55. unsigned short millitm;
  56. short timezone;
  57. short dstflag;
  58. };
  59. #if !__STDC__
  60. /* Non-ANSI name for compatibility */
  61. struct timeb {
  62. time_t time;
  63. unsigned short millitm;
  64. short timezone;
  65. short dstflag;
  66. };
  67. #endif
  68. #define _TIMEB_DEFINED
  69. #endif
  70. /* Function prototypes */
  71. _CRTIMP void __cdecl _ftime(struct _timeb *);
  72. #if !__STDC__
  73. /* Non-ANSI name for compatibility */
  74. _CRTIMP void __cdecl ftime(struct timeb *);
  75. #endif
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79. #ifdef _MSC_VER
  80. #pragma pack(pop)
  81. #endif /* _MSC_VER */
  82. #endif /* _INC_TIMEB */