#include <winbase.h> is not enough for Visual C++ 2013, it errors:
authorYaron Keren <yaron.keren@gmail.com>
Tue, 4 Nov 2014 07:53:30 +0000 (07:53 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Tue, 4 Nov 2014 07:53:30 +0000 (07:53 +0000)
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

llvm/lib/Support/Windows/Threading.inc

index 41fdd98..196be89 100644 (file)
@@ -1,4 +1,4 @@
-#include <winbase.h>
+ #include <windows.h>
 
 #ifdef MemoryFence
 // WinNT.h seems to define a MemoryFence macro.