Time.h 717 B

12345678910111213141516171819202122232425
  1. //===-- Time.h --------------------------------------------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. // Include system time headers, adding missing functions as necessary
  9. #ifndef LLDB_HOST_TIME_H
  10. #define LLDB_HOST_TIME_H
  11. #ifdef __ANDROID__
  12. #include <android/api-level.h>
  13. #endif
  14. #if defined(__ANDROID_API__) && __ANDROID_API__ < 21
  15. #include <time64.h>
  16. extern time_t timegm(struct tm *t);
  17. #else
  18. #include <ctime>
  19. #endif
  20. #endif // LLDB_HOST_TIME_H