[postgis-devel] Patch for iconv support under Win32

strk at refractions.net strk at refractions.net
Mon Apr 10 11:30:05 PDT 2006


We can use memset() w/out a compiler switch.

--strk;

On Mon, Apr 10, 2006 at 11:52:38AM +0100, Mark Cave-Ayland wrote:
> Hi everyone,
> 
> Please find enclosed a patch for review that allows MingW (Win32) builds to
> correctly detect and use iconv to build shp2pgsql. The main issue is that
> the entry point for iconv on Win32 is libiconv_open() as opposed to just
> iconv_open(), so an extra test was added to autoconf to detect this. The
> iconv.h header provides aliases from libiconv_open() to iconv_open() which
> is why shp2pgsql will compile. The only other addition is that MingW does
> not include the bzero() function included within shp2pgsql, and so a #define
> has been added to replace this with a memset() call under MingW.



More information about the postgis-devel mailing list