curl-library
Re: Compiling for x64 on VS2005 Beta2
Date: Sun, 24 Apr 2005 15:14:16 -0700
On 4/24/05, Daniel Stenberg <daniel-curl_at_haxx.se> wrote:
> On Sat, 23 Apr 2005, Cory Nelson wrote:
>
> > I'm happy to say libcurl works great in x64
>
> Nice!
>
> > 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 ?
So long as that comes before any C headers, that should be fine.
> > 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?
Yup, that should work.
> > 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!
Will do.
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
-- Cory Nelson http://www.int64.orgReceived on 2005-04-25