Well LH_Mouse did answer the question:

WIN32 is a non-reserved name, would thus break standards-conforming code (int
WIN32 = 0;) and is therefore not defined in strict standard-conforming mode
(-std=c++??).

Best, Norbert.

On Thu, Oct 12, 2017 at 1:58 PM Ruben Van Boxem <vanboxem.ru...@gmail.com>
wrote:

> Op 12 okt. 2017 11:15 a.m. schreef "Frédéric" <ufosp...@gmail.com>:
>
> > If you look at MSDN, it's actually _WIN32 is the only macro really
> > mentioned anywhere. WIN32 is defined by most Visual studio projects at
> that
> > level, not the compiler. So in my eyes, changing code to check for _WIN32
> > is the only right thing to do.
>
>
> Yes and on our suggestion, the library has just done that (changing
> WIN32 to _WIN32).
>
> However, why does w64 treat differently -std=gnu++XX than -std=c++XX?
> This does not look consistent to me as WIN32 is not concerned by the
> standard.
>
>
> That is a good question. I would say it is something decided long ago and
> now either still there due to no one working on changing that, or there is
> a valid reason this is required.
>
> If no one here answers your question, you might try the GCC mailing list,
> although not a lot of Windows developers lurk there..
>
> Ruben
>
>
> F
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to