[llvm-bugs] [Bug 33251] New: Don't include Windows.h within the headers

via llvm-bugs llvm-bugs at lists.llvm.org
Wed May 31 16:16:46 PDT 2017


            Bug ID: 33251
           Summary: Don't include Windows.h within the headers
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eric at efcs.ca
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

There are a ton of bugs caused by libc++ including windows.h in
<__threading_support>. In the long run we need to remove any dependancies on
Windows.h inside libc++ headers.

This will require re-writing large parts of <__threading_support> to use dummy
types in place of the Windows types, and then casting them to the actual type
and calling the windows API's inside the library. For example SRWLOCK.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170531/e6fc0267/attachment.html>

More information about the llvm-bugs mailing list