brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 7cfb5c1 Raw
28 lines · c
1//===-- Definition of macros to be used with Annex K functions ------------===//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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIBC_INCLUDE_LLVM_LIBC_MACROS_ANNEX_K_MACROS_H10#define LLVM_LIBC_INCLUDE_LLVM_LIBC_MACROS_ANNEX_K_MACROS_H11 12#if (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) ||              \13    (defined(__cplusplus) && __cplusplus >= 201703L)14 15// TODO(bassiounix): Who should def this macro (clang vs libc)? Where?16// TODO(bassiounix): uncomment/move when Annex K is fully implemented.17// #define __STDC_LIB_EXT1__ 201112L18 19#if defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ == 120 21#define LIBC_HAS_ANNEX_K22 23#endif // defined(__STDC_WANT_LIB_EXT1__) && __STDC_WANT_LIB_EXT1__ == 124 25#endif // (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L) ||26       // (defined(__cplusplus) && __cplusplus >= 201703L)27#endif // LLVM_LIBC_INCLUDE_LLVM_LIBC_MACROS_ANNEX_K_MACROS_H28