cURL / Mailing Lists / curl-library / Single Mail

curl-library

compilation error when cross compiling with mingw-w64 (32 bits)

From: Vincent Torri <vincent.torri_at_gmail.com>
Date: Mon, 31 Oct 2011 17:58:52 +0100

hey,

in src/main.c :

#if defined(WIN32) && !defined(__MINGW64__)

__MINGW_64__ is for detecting mingw-w64 64 bits compilation, but not the 32
bits one. Hence, i got an error when using mingw-w64 32 bits (the same
error that I reported before, see the commit when __MINGW64__ has been
added)

According to the mingw-w64 dev, to detect any mingw-w64 compilers, one
should use __MINGW64_VERSION_MAJOR instead of __MINGW64__.

See : http://sourceforge.net/mailarchive/message.php?msg_id=28305973

This fixes the compilation for me.

regards

Vincent Torri

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-10-31