[compiler-rt] r280145 - profile: add missing include for Windows
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 30 13:15:44 PDT 2016
Author: compnerd
Date: Tue Aug 30 15:15:44 2016
New Revision: 280145
URL: http://llvm.org/viewvc/llvm-project?rev=280145&view=rev
Log:
profile: add missing include for Windows
Add a missing Windows.h which is needed for the windows type usage in the TU
(e.g. HANDLE).
Modified:
compiler-rt/trunk/lib/profile/WindowsMMap.c
Modified: compiler-rt/trunk/lib/profile/WindowsMMap.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/WindowsMMap.c?rev=280145&r1=280144&r2=280145&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/WindowsMMap.c (original)
+++ compiler-rt/trunk/lib/profile/WindowsMMap.c Tue Aug 30 15:15:44 2016
@@ -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)
More information about the llvm-commits
mailing list