summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Windows
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2016-10-24 12:39:23 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2016-10-24 12:39:23 +0000
commit6d2de6aa9e6be3c852bc243cc869506bfb6b3f16 (patch)
treea354997131c6555eb4da2a9f073911b14d4502b4 /llvm/lib/Support/Windows
parent33bd5b235b33da3cccc0cabe823e005bb296a7a3 (diff)
downloadbcm5719-llvm-6d2de6aa9e6be3c852bc243cc869506bfb6b3f16.tar.gz
bcm5719-llvm-6d2de6aa9e6be3c852bc243cc869506bfb6b3f16.zip
Fix windows builds by swapping windows.h and wincrypt.h ordering.
We need to include windows.h first even though it breaks default include ordering rules llvm-svn: 284968
Diffstat (limited to 'llvm/lib/Support/Windows')
-rw-r--r--llvm/lib/Support/Windows/WindowsSupport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Windows/WindowsSupport.h b/llvm/lib/Support/Windows/WindowsSupport.h
index f4fad8c3067..563ea728621 100644
--- a/llvm/lib/Support/Windows/WindowsSupport.h
+++ b/llvm/lib/Support/Windows/WindowsSupport.h
@@ -44,8 +44,8 @@
#include <cassert>
#include <string>
#include <system_error>
-#include <wincrypt.h>
#include <windows.h>
+#include <wincrypt.h> // FIXME: must be included after windows.h
/// Determines if the program is running on Windows 8 or newer. This
/// reimplements one of the helpers in the Windows 8.1 SDK, which are intended
OpenPOWER on IntegriCloud