[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #57152] Fix WINDOWS32 gcc build

From: Eli Zaretskii
Subject: [bug #57152] Fix WINDOWS32 gcc build
Date: Wed, 18 Dec 2019 11:06:28 -0500 (EST)
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #4, bug #57152 (project make):

I don't have MinGW64 installed to try that, but if you tried it and it worked,
then I guess it's fine.

The problem with __MINGW64__ is that AFAIK it isn't defined by the compiler,
it is in some header file.  So if config.h is included before any MinGW64
header, the macro might not be defined.

What I usually do is this:

#include <_mingw.h>
#ifdef __MINGW32_VERSION
/* mingw.org */
/* MinGW64 */

(Thankfully, __MINGW32_VERSION is not defined in MinGW64.)

But again, if __MINGW64__ works for you, I'm fine with that.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]