#include <winbase.h> is not enough for Visual C++ 2013, it errors:

1>C:\Program Files (x86)\Windows Kits\8.1\Include\um\minwinbase.h(46):
error C2146: syntax error : missing ';' before identifier 'nLength'
1>C:\Program Files (x86)\Windows Kits\8.1\Include\um\minwinbase.h(46):
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
...

including <windows.h> is actually required.

llvm-svn: 221244
This commit is contained in:
Yaron Keren 2014-11-04 07:53:30 +00:00
parent 83d6857b72
commit 6091fe7db9
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#include <winbase.h>
#include <windows.h>
#ifdef MemoryFence
// WinNT.h seems to define a MemoryFence macro.