]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/llvm/tools/lldb/include/lldb/Host/Time.h
Merge llvm, clang, compiler-rt, libc++, libunwind, lld, lldb and openmp
[FreeBSD/FreeBSD.git] / contrib / llvm / tools / lldb / include / lldb / Host / Time.h
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
9 // Include system time headers, adding missing functions as necessary
10
11 #ifndef liblldb_Host_Time_h_
12 #define liblldb_Host_Time_h_
13
14 #ifdef __ANDROID__
15 #include <android/api-level.h>
16 #endif
17
18 #if defined(__ANDROID_API__) && __ANDROID_API__ < 21
19 #include <time64.h>
20 extern time_t timegm(struct tm *t);
21 #else
22 #include <time.h>
23 #endif
24
25 #endif // liblldb_Host_Time_h_