aboutsummaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2023-11-29 18:53:30 -0600
committerGitHub <noreply@github.com>2023-11-29 18:53:30 -0600
commit8b9a6af4504a9a160bb1da0abced9c538b3af26b (patch)
tree426167cf79ad8120cce246d0357c826765ba1763 /openmp
parent8a4b90321f4aee78f70ef164031eb00da6d6b5c9 (diff)
downloadllvm-8b9a6af4504a9a160bb1da0abced9c538b3af26b.zip
llvm-8b9a6af4504a9a160bb1da0abced9c538b3af26b.tar.gz
llvm-8b9a6af4504a9a160bb1da0abced9c538b3af26b.tar.bz2
[OpenMP] Add an 'stddef.h' include to 'omp.h' (#73876)
Summary: We use `size_t` internally in the omp.h header, which is normally provided by `stdlib.h` which is already included. Howevever, some cases when using `-ffreestanding` can result in this not being defined via `stdlib.h`. This patch simply adds an explicit inclusion of this header, which is provided by the `clang` resource directory, to resolve this in all cases.
Diffstat (limited to 'openmp')
-rw-r--r--openmp/runtime/src/include/omp.h.var1
1 files changed, 1 insertions, 0 deletions
diff --git a/openmp/runtime/src/include/omp.h.var b/openmp/runtime/src/include/omp.h.var
index 0dd3a53..a1488ae 100644
--- a/openmp/runtime/src/include/omp.h.var
+++ b/openmp/runtime/src/include/omp.h.var
@@ -15,6 +15,7 @@
#ifndef __OMP_H
# define __OMP_H
+# include <stddef.h>
# include <stdlib.h>
# include <stdint.h>