[PATCH] D13412: Include Windows.h instead of winbase.h and windef.h
angelsl via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 4 23:48:14 PDT 2015
angelsl retitled this revision from "Include wtypes.h to select arch (fix MSVC); remove winbase.h (unneeded)" to "Include Windows.h instead of winbase.h and windef.h".
angelsl updated this revision to Diff 36482.
http://reviews.llvm.org/D13412
Files:
lib/builtins/enable_execute_stack.c
Index: lib/builtins/enable_execute_stack.c
===================================================================
--- lib/builtins/enable_execute_stack.c
+++ lib/builtins/enable_execute_stack.c
@@ -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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13412.36482.patch
Type: text/x-patch
Size: 391 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151005/a99e4763/attachment.bin>
More information about the llvm-commits
mailing list