Skip to content

Commit 15103c2

Browse files
committed
remove C11 requirement and add stdc macro support
1 parent 1e8e8df commit 15103c2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libc/include/llvm-libc-macros/annex-k-macros.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
#ifndef LLVM_LIBC_INCLUDE_LLVM_LIBC_MACROS_ANNEX_K_MACROS_H
1010
#define LLVM_LIBC_INCLUDE_LLVM_LIBC_MACROS_ANNEX_K_MACROS_H
1111

12-
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && \
13-
defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ == 1
12+
#define __STDC_LIB_EXT1__ 200509L
13+
14+
#if defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ == 1
1415

1516
#define LIBC_HAS_ANNEX_K
1617

0 commit comments

Comments
 (0)