[LLVMdev] [PATCH] VS2010 stdint.h

Kai kai at redstar.de
Sat Jan 14 10:45:39 PST 2012


Hi!

VS2010 now includes a stdint.h header. LLVM assumes that there is no 
stdint.h header and creates own types and macros. Because the macros in 
the stdint.h header are not protected, you get warnings at compile time 
if you first include llvm/Support/Datatypes.h and then stdint.h.

The attached patch includes stdint.h depending on compiler version and 
therefore avoids these warnings.

Kai
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: datatypes.diff
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120114/629749b1/attachment.ksh>


More information about the llvm-dev mailing list