From 5034a983ff7a455ff3030b6030c5bd8e409a4266 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 4 Jun 2004 19:01:49 +0000 Subject: [PATCH] Make this work with VC++ llvm-svn: 14012 --- llvm/include/Support/DataTypes.h.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/llvm/include/Support/DataTypes.h.in b/llvm/include/Support/DataTypes.h.in index d01f8c2f2fa0..d2269b306fbf 100644 --- a/llvm/include/Support/DataTypes.h.in +++ b/llvm/include/Support/DataTypes.h.in @@ -30,9 +30,16 @@ # error "Must #define __STDC_LIMIT_MACROS before #including Support/DataTypes.h" #endif +#ifndef _MSC_VER // Note that includes , if this is a C99 system. @INCLUDE_INTTYPES_H@ @INCLUDE_SYS_TYPES_H@ +#else +// Visual C++ doesn't provide standard integer headers, but it does provide +// built-in data types. +typedef __int64 int64_t; +typedef unsigned __int64 uint64_t; +#endif #if !defined(INT64_MAX) /* We couldn't determine INT64_MAX; default it. */