]> granicus.if.org Git - postgis/commitdiff
Added Romi's Win32 patches.
authorSandro Santilli <strk@keybit.net>
Wed, 9 Jun 2004 09:06:55 +0000 (09:06 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 9 Jun 2004 09:06:55 +0000 (09:06 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@613 b70326c6-7e19-0410-871a-916f4a2858ee

postgis.h

index f1dce523ad40ff1625eeebbe2fff8f401dc906a7..2253efe315d1fe4dd96976cdfc4847a6483917b4 100644 (file)
--- a/postgis.h
+++ b/postgis.h
@@ -11,6 +11,9 @@
  *
  **********************************************************************
  * $Log$
+ * Revision 1.46  2004/06/09 09:06:55  strk
+ * Added Romi's Win32 patches.
+ *
  * Revision 1.45  2004/06/08 15:18:12  strk
  * Deleted prototype for isspace() in postgis.h
  * and included <ctype.h> in postgis_inout.c,
  * it defines BYTE_ORDER and LITTLE_ENDIAN
  */
 
-#ifdef __CYGWIN__
+#if defined(__CYGWIN__) || defined(__MINGW32__)
 #include <sys/param.h>       // FOR ENDIAN DEFINES
 #endif
 
@@ -677,8 +680,10 @@ Datum fluffType(PG_FUNCTION_ARGS);
 
 // from contrib/cube/cube.c
 
+#if ! defined(__MINGW32__)
 #define max(a,b)               ((a) >  (b) ? (a) : (b))
 #define min(a,b)               ((a) <= (b) ? (a) : (b))
+#endif
 #define abs(a)                 ((a) <  (0) ? (-a) : (a))