Re: Compiling for x64 on VS2005 Beta2
Date: Sun, 24 Apr 2005 23:47:09 +0200 (CEST)
On Sat, 23 Apr 2005, Cory Nelson wrote:
> I'm happy to say libcurl works great in x64
> First you need to define _CRT_SECURE_NO_DEPRECATE and
> _CRT_NONSTDC_NO_DEPRECATE for the whole project, as VS2005 deprecates
> functions that can cause buffer overflows.
Would it be enough to define them in lib/setup.h ?
> Next you need to define WIN32, as only WIN64 is set. However, _WIN32 is
> always defined- so this would be the correct one to use.
lib/setup.h has a check for "#if !defined(WIN32) && defined(__WIN32__)"
already adding a "#if !defined(WIN32) && defined(_WIN32)" should be easy. (To
avoid having to modify the sources all over.) Right?
> There are also a lot of size_t to int and a few __int64 to int warnings that
> should be casted, but that's just a compiler switch. I can attach a patch
> against CVS later on that corrects these if you want.
I would like that!
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2005-04-24