[postgis-users] building postgis 0.8.1 on Postgresql Native Win32

Romi Hardiyanto rodin at ewesewes.net
Mon Apr 5 21:59:51 PDT 2004


I included the postgis.h i used to compile, unfortunately i forgot about 
which version it came from (0.8.0 or cvs), but is not too much different.

about line 79:

from
#ifdef __CYGWIN__
#include <sys/param.h>       // FOR ENDIAN DEFINES
#endif

to
#if defined(__CYGWIN__) || defined(__MINGW32__)
#include <sys/param.h>       // FOR ENDIAN DEFINES
#endif


about line 644
from:
#define max(a,b)		((a) >	(b) ? (a) : (b))
#define min(a,b)		((a) <= (b) ? (a) : (b))


to:
#if !defined(__MINGW32__)
#define max(a,b)		((a) >	(b) ? (a) : (b))
#define min(a,b)		((a) <= (b) ? (a) : (b))
#endif


Romi H
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: postgis.h
URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20040406/2a465ac9/attachment.h>


More information about the postgis-users mailing list