Warning: This file is not a C or C++ file. It does not have highlighting.
1 | //===-- Target OS detection -------------------------------------*- 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 | #ifndef LLVM_LIBC_SRC___SUPPORT_MACROS_PROPERTIES_OS_H |
9 | #define LLVM_LIBC_SRC___SUPPORT_MACROS_PROPERTIES_OS_H |
10 | |
11 | #if (defined(__freebsd__) || defined(__FreeBSD__)) |
12 | #define LIBC_TARGET_OS_IS_FREEBSD |
13 | #endif |
14 | |
15 | #if defined(__ANDROID__) |
16 | #define LIBC_TARGET_OS_IS_ANDROID |
17 | #endif |
18 | |
19 | #if defined(__linux__) && !defined(LIBC_TARGET_OS_IS_FREEBSD) && \ |
20 | !defined(LIBC_TARGET_OS_IS_ANDROID) |
21 | #define LIBC_TARGET_OS_IS_LINUX |
22 | #endif |
23 | |
24 | #if (defined(_WIN64) || defined(_WIN32)) |
25 | #define LIBC_TARGET_OS_IS_WINDOWS |
26 | #endif |
27 | |
28 | #if defined(__Fuchsia__) |
29 | #define LIBC_TARGET_OS_IS_FUCHSIA |
30 | #endif |
31 | |
32 | #endif // LLVM_LIBC_SRC___SUPPORT_MACROS_PROPERTIES_OS_H |
33 |
Warning: This file is not a C or C++ file. It does not have highlighting.