profile: add missing include for Windows
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 30 Aug 2016 20:15:44 +0000 (20:15 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 30 Aug 2016 20:15:44 +0000 (20:15 +0000)
Add a missing Windows.h which is needed for the windows type usage in the TU
(e.g. HANDLE).

llvm-svn: 280145

compiler-rt/lib/profile/WindowsMMap.c

index 1f73420..f81d7da 100644 (file)
@@ -20,6 +20,9 @@
 #include "WindowsMMap.h"
 #include "InstrProfiling.h"
 
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+
 #ifdef __USE_FILE_OFFSET64
 # define DWORD_HI(x) (x >> 32)
 # define DWORD_LO(x) ((x) & 0xffffffff)