878 changes: 878 additions & 0 deletions libc/include/llvm-libc-macros/stdint-macros.h

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions libc/include/stdint.h.def
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//===-- C standard library header stdint.h --------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_LIBC_STDINT_H
#define LLVM_LIBC_STDINT_H

#include <llvm-libc-macros/stdint-macros.h>

#endif // LLVM_LIBC_STDINT_H
3 changes: 3 additions & 0 deletions libc/spec/stdc.td
Original file line number Diff line number Diff line change
Expand Up @@ -963,6 +963,8 @@ def StdC : StandardSpec<"stdc"> {
]
>;

HeaderSpec StdInt = HeaderSpec<"StdInt.h">;

HeaderSpec Limits = HeaderSpec<"limits.h">;

NamedType SigAtomicT = NamedType<"sig_atomic_t">;
Expand Down Expand Up @@ -1268,6 +1270,7 @@ def StdC : StandardSpec<"stdc"> {
Errno,
Fenv,
Float,
StdInt,
Limits,
Math,
String,
Expand Down
5 changes: 5 additions & 0 deletions utils/bazel/llvm-project-overlay/libc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,11 @@ libc_support_library(
hdrs = ["include/llvm-libc-macros/float-macros.h"],
)

libc_support_library(
name = "llvm_libc_macros_stdint_macros",
hdrs = ["include/llvm-libc-macros/stdint-macros.h"],
)

libc_support_library(
name = "llvm_libc_macros_stdfix_macros",
hdrs = ["include/llvm-libc-macros/stdfix-macros.h"],
Expand Down