Skip to content

Commit f9f75a2

Browse files
committed
guard fopen_s
1 parent 92b18c5 commit f9f75a2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

libc/include/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ add_header_macro(
332332
../libc/include/stdio.yaml
333333
stdio.h
334334
DEPENDS
335+
.llvm-libc-macros.annex_k_macros
335336
.llvm-libc-macros.file_seek_macros
336337
.llvm-libc-macros.null_macro
337338
.llvm-libc-macros.stdio_macros

libc/include/stdio.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ macros:
99
macro_value: stdin
1010
- macro_name: stderr
1111
macro_value: stderr
12+
- macro_name: LIBC_HAS_ANNEX_K
13+
macro_header: annex-k-macros.h
1214
types:
1315
- type_name: size_t
1416
- type_name: errno_t
@@ -127,6 +129,7 @@ functions:
127129
- type: const char *
128130
- type: const char *
129131
- name: fopen_s
132+
guard: LIBC_HAS_ANNEX_K
130133
standards:
131134
- stdc
132135
return_type: errno_t

0 commit comments

Comments
 (0)