[compiler-rt] [profile] Fix building for MinGW after d889d1efefe9f
authorMartin Storsjö <martin@martin.st>
Fri, 1 Nov 2019 07:20:51 +0000 (09:20 +0200)
committerMartin Storsjö <martin@martin.st>
Fri, 1 Nov 2019 07:20:51 +0000 (09:20 +0200)
commitec630194fe64e9e304487040e808d0696a4f1895
treec65773b9d9f4b97398a3e0c321d16e76f4841c98
parent19e7f8a21d62d0a6ae8a1bbecb232bd9d520555b
[compiler-rt] [profile] Fix building for MinGW after d889d1efefe9f

This commit added use of a Windows API in InstrProfilingPort.h.
When _MSC_VER is defined (for MSVC), windows.h is already included
earlier in the same header (for atomics), but MinGW, the gcc
atomics builtins are used instead. Therefore explicitly include
windows.h here, where the API is used.
compiler-rt/lib/profile/InstrProfilingPort.h