[compiler-rt] r249373 - builtins: tweak Windows build

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 5 21:32:59 PDT 2015


Author: compnerd
Date: Mon Oct  5 23:32:59 2015
New Revision: 249373

URL: http://llvm.org/viewvc/llvm-project?rev=249373&view=rev
Log:
builtins: tweak Windows build

Include Windows.h instead of winbase.h and windef.h

Patch by Tee Hao Wei!

Modified:
    compiler-rt/trunk/lib/builtins/enable_execute_stack.c

Modified: compiler-rt/trunk/lib/builtins/enable_execute_stack.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/builtins/enable_execute_stack.c?rev=249373&r1=249372&r2=249373&view=diff
==============================================================================
--- compiler-rt/trunk/lib/builtins/enable_execute_stack.c (original)
+++ compiler-rt/trunk/lib/builtins/enable_execute_stack.c Mon Oct  5 23:32:59 2015
@@ -21,8 +21,8 @@
 #define HAVE_SYSCONF 1
 
 #ifdef _WIN32
-#include <windef.h>
-#include <winbase.h>
+#define WIN32_LEAN_AND_MEAN
+#include <Windows.h>
 #else
 #ifndef __APPLE__
 #include <unistd.h>




More information about the llvm-commits mailing list