[PATCH] D40285: [MS] AARCH64 cleanup default WIN macros

Martell Malone via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 21 01:16:22 PST 2017


martell added a comment.

In https://reviews.llvm.org/D40285#931248, @mstorsjo wrote:

> I'm a little divided - either we remove both WIN32 and WIN64 from all mingw configurations, or we add the missing WIN32 for x86_64 mingw. Removing would be the strictly correct thing to do, but I'm sure it will break code that used to work before (even though it's wrong to rely on the unprefixed one).


looking at different `windef.h` I see - specifically ReactOS

  #ifndef WIN32
  #define WIN32
  #endif

I don't have MSVC off hand to check if it is there but I do remember MSVC projects used to pass `/D "WIN32"` so having them might make sense also.
I'm going to try include them and fold all the code for the different arch's for mingw in a moment


Repository:
  rL LLVM

https://reviews.llvm.org/D40285





More information about the cfe-commits mailing list