Skip to content

Commit 8b9a6af

Browse files
authored
[OpenMP] Add an 'stddef.h' include to 'omp.h' (llvm#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.
1 parent 8a4b903 commit 8b9a6af

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openmp/runtime/src/include/omp.h.var

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#ifndef __OMP_H
1616
# define __OMP_H
1717

18+
# include <stddef.h>
1819
# include <stdlib.h>
1920
# include <stdint.h>
2021

0 commit comments

Comments
 (0)