Fix warnings when building with VS11.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Sun, 11 Mar 2012 01:20:23 +0000 (01:20 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Sun, 11 Mar 2012 01:20:23 +0000 (01:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152523 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/DataTypes.h.cmake

index d17f35f1ca45dfb18eb20fdee3402bb6b2fe072d..a3a6489e8a526611d5a5ddce81291dd7bf56e0a4 100644 (file)
@@ -94,6 +94,9 @@ typedef u_int64_t uint64_t;
 #else /* _MSC_VER */
 /* Visual C++ doesn't provide standard integer headers, but it does provide
    built-in data types. */
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
 #include <stdlib.h>
 #include <stddef.h>
 #include <sys/types.h>