[PATCH] D62034: compiler-rt/lib/builtins: s/#include <windows.h>/#include <Windows.h>/g to match proper case.
Puyan Lotfi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 16 14:37:51 PDT 2019
plotfi created this revision.
plotfi added a reviewer: compnerd.
Herald added subscribers: Sanitizers, dberris.
Herald added projects: Sanitizers, LLVM.
The proper case of Windows.h is with a capital W. On case sensitive filesystems "#include <windows.h" breaks.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D62034
Files:
compiler-rt/lib/builtins/emutls.c
compiler-rt/lib/builtins/enable_execute_stack.c
Index: compiler-rt/lib/builtins/enable_execute_stack.c
===================================================================
--- compiler-rt/lib/builtins/enable_execute_stack.c
+++ compiler-rt/lib/builtins/enable_execute_stack.c
@@ -19,7 +19,7 @@
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
-#include <windows.h>
+#include <Windows.h>
#else
#ifndef __APPLE__
#include <unistd.h>
Index: compiler-rt/lib/builtins/emutls.c
===================================================================
--- compiler-rt/lib/builtins/emutls.c
+++ compiler-rt/lib/builtins/emutls.c
@@ -123,7 +123,7 @@
#include <assert.h>
#include <malloc.h>
#include <stdio.h>
-#include <windows.h>
+#include <Windows.h>
static LPCRITICAL_SECTION emutls_mutex;
static DWORD emutls_tls_index = TLS_OUT_OF_INDEXES;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62034.199907.patch
Type: text/x-patch
Size: 789 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190516/92c416ae/attachment.bin>
More information about the llvm-commits
mailing list