summaryrefslogtreecommitdiff
path: root/libc/spec
diff options
context:
space:
mode:
authorSiva Chandra Reddy <sivachandra@google.com>2022-11-01 22:27:21 +0000
committerSiva Chandra Reddy <sivachandra@google.com>2022-11-02 07:17:33 +0000
commit15ae08c1a17dbc4a8f8c06aa238a474ef7a7f4dc (patch)
tree9a8c4cb01d5e84c0207ea7949b0bb10b07ab4f38 /libc/spec
parent87d98a73005d42dc233c4f5bf191fc0496193716 (diff)
downloadllvm-15ae08c1a17dbc4a8f8c06aa238a474ef7a7f4dc.tar.gz
[libc] Add definitions of a few missing macros and types.
Diffstat (limited to 'libc/spec')
-rw-r--r--libc/spec/stdc.td3
1 files changed, 3 insertions, 0 deletions
diff --git a/libc/spec/stdc.td b/libc/spec/stdc.td
index 964b3e7c2733..a7a9df46747f 100644
--- a/libc/spec/stdc.td
+++ b/libc/spec/stdc.td
@@ -338,6 +338,7 @@ def StdC : StandardSpec<"stdc"> {
Macro<"MATH_ERREXCEPT">,
Macro<"math_errhandling">,
+ Macro<"HUGE_VAL">,
Macro<"INFINITY">,
Macro<"NAN">,
@@ -740,6 +741,7 @@ def StdC : StandardSpec<"stdc"> {
]
>;
+ NamedType SigAtomicT = NamedType<"sig_atomic_t">;
HeaderSpec Signal = HeaderSpec<
"signal.h",
[
@@ -756,6 +758,7 @@ def StdC : StandardSpec<"stdc"> {
],
[
SizeTType,
+ SigAtomicT,
SigHandlerT,
],
[], // Enumerations