Skip to content

Commit f998c2b

Browse files
committed
add clarifying comment about LIBC_HAS_ANNEX_K
1 parent 17c0bbe commit f998c2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libc/include/llvm-libc-types/errno_t.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#ifndef LLVM_LIBC_INCLUDE_LLVM_LIBC_TYPES_ERRNO_T_H
1010
#define LLVM_LIBC_INCLUDE_LLVM_LIBC_TYPES_ERRNO_T_H
1111

12+
// LIBC_HAS_ANNEX_K is a necessary check guard here because errno_t is only
13+
// defined when Annex K is enabled. We use LIBC_HAS_ANNEX_K internally to
14+
// indicate whether Annex K is enabled or not.
1215
#ifdef LIBC_HAS_ANNEX_K
1316

1417
typedef int errno_t;

0 commit comments

Comments
 (0)