[MINGW] normalize WIN32 macros
authorMartell Malone <martellmalone@gmail.com>
Tue, 21 Nov 2017 11:28:29 +0000 (11:28 +0000)
committerMartell Malone <martellmalone@gmail.com>
Tue, 21 Nov 2017 11:28:29 +0000 (11:28 +0000)
commit051e966e49721685a3f1a95c6fee50a0f1762bd8
treef1bd810b1af8390784b2502082b5e2589ce012be
parent124f5de84134095ac4cfa88eecfec1cf39995516
[MINGW] normalize WIN32 macros

move _WIN64 and _WIN32 defines to lib/Basic/Targets/OSTargets.h
move WIN32, WIN64 and __MINGW64__ to addMinGWDefines

fixes __MINGW64__ not being defined for aarch64
adds WIN32 definition for x64

Reviewers: mstorsjo

Differential Revision: https://reviews.llvm.org/D40285

llvm-svn: 318755
clang/lib/Basic/Targets.cpp
clang/lib/Basic/Targets.h
clang/lib/Basic/Targets/AArch64.cpp
clang/lib/Basic/Targets/AArch64.h
clang/lib/Basic/Targets/ARM.cpp
clang/lib/Basic/Targets/OSTargets.h
clang/lib/Basic/Targets/X86.h
clang/test/Preprocessor/predefined-macros.c