[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Fix JavaHL compile error with VS2005

From: Daniel Rall <dlr_at_collab.net>
Date: 2006-01-10 03:09:55 CET

On Sun, 08 Jan 2006, Jens Peters wrote:

> Hello,
>
> Please apply this patch and I would also ask to backport it to the 1.3.x
> line, because otherwise compiling JavaHL with VS2005 results in a casting
> error. The reasons therefore are (according to _the_ Stefan Kueng, thanks
> again for the really good explanation):

Thanks, Jens. I've committed a patch based on this one (const, extra
space after cast type) to trunk in r18032, and nominated that change
for backport to 1.3.1.

> "The reason VS2005 can't cast that value is twofold:
> 1. the cast isn't necessary for *.c files, but JNIUtil is a cpp file. In
> C++ casts are more strict.
> 2. VS2005 now has 'treat wchar_t as Built-in Type' enabled by default, which
> was disabled in VS.NET2003."
>
> (I'm resending this patch with a better description, the original message
> was http://svn.haxx.se/dev/archive-2006-01/0042.shtml)
...

-- 
Daniel Rall

  • application/pgp-signature attachment: stored
Received on Tue Jan 10 03:11:16 2006

This is an archived mail posted to the Subversion Dev mailing list.