Fix standard integer definitions for MSVC in DataTypes.h
authorReid Kleckner <reid@kleckner.net>
Wed, 28 May 2014 18:19:55 +0000 (18:19 +0000)
committerReid Kleckner <reid@kleckner.net>
Wed, 28 May 2014 18:19:55 +0000 (18:19 +0000)
commit296f55f618491316b36eba75e5127b00e56e0cd1
treeaa23099eb6c016a8c11a69f774f7cf7e52a5d90c
parent665d42accf60bba6444ef7be8cd9e89d7aac177a
Fix standard integer definitions for MSVC in DataTypes.h

Previously, DataTypes.h would #define a variety of symbols any time
they weren't already defined.  However, some versions of Visual
Studio do provide the appropriate headers, so if those headers are
included after DataTypes.h, it can lead to macro redefinition
warnings.

The fix is to include the appropriate headers if they exist, and
only #define the symbols if the required header does not exist.

Patch by Zachary Turner!

---

The big change here is that we no longer have our own stdint.h
typedefs because now all supported toolchains have stdint.h.
Hooray!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209760 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/DataTypes.h.cmake
include/llvm/Support/DataTypes.h.in