timeb_s.h 653 B

1234567891011121314151617181920212223242526272829303132333435
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the w64 mingw-runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER within this package.
  5. */
  6. #ifndef _TIMEB_H_S
  7. #define _TIMEB_H_S
  8. #include <sys/timeb.h>
  9. #ifdef __cplusplus
  10. extern "C" {
  11. #endif
  12. #if defined(MINGW_HAS_SECURE_API)
  13. #ifdef _USE_32BIT_TIME_T
  14. #define _ftime_s _ftime32_s
  15. #else
  16. #define _ftime_s _ftime64_s
  17. #endif
  18. _CRTIMP errno_t __cdecl _ftime32_s(struct __timeb32 *_Time);
  19. #if _INTEGRAL_MAX_BITS >= 64
  20. _CRTIMP errno_t __cdecl _ftime64_s(struct __timeb64 *_Time);
  21. #endif
  22. #endif
  23. #ifdef __cplusplus
  24. }
  25. #endif
  26. #endif