File tree Expand file tree Collapse file tree 7 files changed +49
-0
lines changed Expand file tree Collapse file tree 7 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ set(TARGET_PUBLIC_HEADERS
2
2
libc.include.assert
3
3
libc.include.ctype
4
4
libc.include.errno
5
+ libc.include.features
5
6
libc.include.fenv
6
7
libc.include.inttypes
7
8
libc.include.math
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ set(TARGET_PUBLIC_HEADERS
4
4
libc.include.dirent
5
5
libc.include.errno
6
6
libc.include.fcntl
7
+ libc.include.features
7
8
libc.include.fenv
8
9
libc.include.inttypes
9
10
libc.include.math
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ set(TARGET_PUBLIC_HEADERS
4
4
libc.include.dirent
5
5
libc.include.errno
6
6
libc.include.fcntl
7
+ libc.include.features
7
8
libc.include.fenv
8
9
libc.include.inttypes
9
10
libc.include.math
Original file line number Diff line number Diff line change @@ -46,6 +46,15 @@ add_gen_header(
46
46
.llvm-libc-types.mode_t
47
47
)
48
48
49
+ add_gen_header (
50
+ features
51
+ DEF_FILE features.h.def
52
+ GEN_HDR features.h
53
+ DEPENDS
54
+ .llvm_libc_common_h
55
+ .llvm-libc-macros.features_macros
56
+ )
57
+
49
58
add_gen_header (
50
59
fenv
51
60
DEF_FILE fenv.h.def
Original file line number Diff line number Diff line change
1
+ //===-- C standard library header features.h -------------------------------===//
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
+ #ifndef LLVM_LIBC_FEATURES_H
10
+ #define LLVM_LIBC_FEATURES_H
11
+
12
+ #include <__llvm-libc-common.h>
13
+ #include <llvm-libc-macros/features-macros.h>
14
+
15
+ %%public_api()
16
+
17
+ #endif // LLVM_LIBC_FEATURES_H
Original file line number Diff line number Diff line change @@ -46,6 +46,12 @@ add_macro_header(
46
46
fcntl-macros.h
47
47
)
48
48
49
+ add_macro_header (
50
+ features_macros
51
+ HDR
52
+ features-macros.h
53
+ )
54
+
49
55
add_macro_header (
50
56
fenv_macros
51
57
HDR
Original file line number Diff line number Diff line change
1
+ //===-- Definition of macros from features.h ------------------------------===//
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
+ #ifndef __LLVM_LIBC_MACROS_FEATURES_MACROS_H
10
+ #define __LLVM_LIBC_MACROS_FEATURES_MACROS_H
11
+
12
+ #define __LLVM_LIBC__ 1
13
+
14
+ #endif // __LLVM_LIBC_MACROS_FEATURES_MACROS_H
You can’t perform that action at this time.
0 commit comments