timeb.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. * timeb.h
  3. *
  4. * Support for the UNIX System V ftime system call.
  5. *
  6. * This file is part of the Mingw32 package.
  7. *
  8. * Contributors:
  9. * Created by Colin Peters <[email protected]>
  10. *
  11. * THIS SOFTWARE IS NOT COPYRIGHTED
  12. *
  13. * This source code is offered for use in the public domain. You may
  14. * use, modify or distribute it freely.
  15. *
  16. * This code is distributed in the hope that it will be useful but
  17. * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
  18. * DISCLAIMED. This includes but is not limited to warranties of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  20. *
  21. * $Revision: 1.2 $
  22. * $Author: bellard $
  23. * $Date: 2005/04/17 13:14:29 $
  24. *
  25. */
  26. #ifndef __STRICT_ANSI__
  27. #ifndef _TIMEB_H_
  28. #define _TIMEB_H_
  29. /* All the headers include this file. */
  30. #include <_mingw.h>
  31. #ifndef RC_INVOKED
  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. #ifndef _NO_OLDNAMES
  43. /*
  44. * TODO: Structure not tested.
  45. */
  46. struct timeb
  47. {
  48. long time;
  49. short millitm;
  50. short timezone;
  51. short dstflag;
  52. };
  53. #endif
  54. #ifdef __cplusplus
  55. extern "C" {
  56. #endif
  57. /* TODO: Not tested. */
  58. void _ftime (struct _timeb*);
  59. #ifndef _NO_OLDNAMES
  60. void ftime (struct timeb*);
  61. #endif /* Not _NO_OLDNAMES */
  62. #ifdef __cplusplus
  63. }
  64. #endif
  65. #endif /* Not RC_INVOKED */
  66. #endif /* Not _TIMEB_H_ */
  67. #endif /* Not __STRICT_ANSI__ */