[all-commits] [llvm/llvm-project] 0c39f8: [Support] reorder Threading includes to avoid conf...

Tim Northover via All-commits all-commits at lists.llvm.org
Fri Jul 9 02:41:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c39f82f0b3e9268f7699e62f59f960a1bff89fa
      https://github.com/llvm/llvm-project/commit/0c39f82f0b3e9268f7699e62f59f960a1bff89fa
  Author: Tim Northover <t.p.northover at gmail.com>
  Date:   2021-07-09 (Fri, 09 Jul 2021)

  Changed paths:
    M llvm/lib/Support/Threading.cpp
    M llvm/lib/Support/Unix/Threading.inc
    M llvm/lib/Support/Windows/Threading.inc

  Log Message:
  -----------
  [Support] reorder Threading includes to avoid conflict with FreeBSD headers

FreeBSD's condvar.h (included by user.h in Threading.inc) uses a "struct
thread" that conflicts with llvm::thread if both are visible when it's
included.

So this moves our #include after the FreeBSD code.




More information about the All-commits mailing list