cURL / Mailing Lists / curl-library / Single Mail

curl-library

CMake: fix for Windows x64 build with MSVS Compiler

From: tetetest tetetest <tetetest_at_rambler.ru>
Date: Wed, 28 Mar 2012 12:34:16 +0400

Hello,

There is a strange bug in MS Visual Studio 2010 for x64 compiler: while
it readily accepts 'ULL' as a valid suffix for unsigned long long
literals,
it rejects 'LLU'.
The bug is strange because both 'ULL' and 'LLU' suffixes are okay for
the 32-bit compiler that comes along with the x64 one.

Other compilers (GCC, Intel ICC) accept both forms.

Please find attached a small patch that enables compiling libcurl with
MS VS x64 Compiler.

--
Regards,
Tetetest.


-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2012-03-28