[all-commits] [llvm/llvm-project] 8b9a6a: [OpenMP] Add an 'stddef.h' include to 'omp.h' (#73...

Joseph Huber via All-commits all-commits at lists.llvm.org
Wed Nov 29 16:53:45 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8b9a6af4504a9a160bb1da0abced9c538b3af26b
      https://github.com/llvm/llvm-project/commit/8b9a6af4504a9a160bb1da0abced9c538b3af26b
  Author: Joseph Huber <huberjn at outlook.com>
  Date:   2023-11-29 (Wed, 29 Nov 2023)

  Changed paths:
    M openmp/runtime/src/include/omp.h.var

  Log Message:
  -----------
  [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.




More information about the All-commits mailing list