From cd876cbd2ebf4310a17cca6737781e5dc0c32c9b Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Fri, 25 Jul 2003 17:08:37 +0000 Subject: [PATCH] Moved Cygwin endian define out of source files into postgis.h common header file. git-svn-id: http://svn.osgeo.org/postgis/trunk@280 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis.h | 15 +++++++++++++-- postgis_debug.c | 11 ++++------- postgis_estimate.c | 11 ++++------- postgis_fn.c | 12 ++++-------- postgis_inout.c | 12 ++++-------- postgis_ops.c | 11 ++++------- 6 files changed, 33 insertions(+), 39 deletions(-) diff --git a/postgis.h b/postgis.h index ac9075902..bb4815d1b 100644 --- a/postgis.h +++ b/postgis.h @@ -11,6 +11,10 @@ * ********************************************************************** * $Log$ + * Revision 1.31 2003/07/25 17:08:37 pramsey + * Moved Cygwin endian define out of source files into postgis.h common + * header file. + * * Revision 1.30 2003/07/01 18:30:55 pramsey * Added CVS revision headers. * @@ -24,8 +28,6 @@ #include "utils/geo_decls.h" - - #define POINTTYPE 1 #define LINETYPE 2 #define POLYGONTYPE 3 @@ -35,6 +37,15 @@ #define COLLECTIONTYPE 7 #define BBOXONLYTYPE 99 +/* + * Norman Vine found this problem for compiling under cygwin + * it defines BYTE_ORDER and LITTLE_ENDIAN + */ + +#ifdef __CYGWIN__ +#include // FOR ENDIAN DEFINES +#endif + //standard definition of an ellipsoid (what wkt calls a spheroid) // f = (a-b)/a diff --git a/postgis_debug.c b/postgis_debug.c index 554b0d0ae..84755af3c 100644 --- a/postgis_debug.c +++ b/postgis_debug.c @@ -11,6 +11,10 @@ * ********************************************************************** * $Log$ + * Revision 1.10 2003/07/25 17:08:37 pramsey + * Moved Cygwin endian define out of source files into postgis.h common + * header file. + * * Revision 1.9 2003/07/01 18:30:55 pramsey * Added CVS revision headers. * @@ -38,13 +42,6 @@ #include "utils/elog.h" -//Norman Vine found this problem for compiling under cygwin -// it defines BYTE_ORDER and LITTLE_ENDIAN - -#ifdef __CYGWIN__ -#include -#endif - #define SHOW_DIGS_DOUBLE 15 #define MAX_DIGS_DOUBLE (SHOW_DIGS_DOUBLE + 6 + 1 + 3 +1) diff --git a/postgis_estimate.c b/postgis_estimate.c index 8625ce5ac..1a3da700e 100644 --- a/postgis_estimate.c +++ b/postgis_estimate.c @@ -11,6 +11,10 @@ * ********************************************************************** * $Log$ + * Revision 1.6 2003/07/25 17:08:37 pramsey + * Moved Cygwin endian define out of source files into postgis.h common + * header file. + * * Revision 1.5 2003/07/01 18:30:55 pramsey * Added CVS revision headers. * @@ -37,13 +41,6 @@ #include "postgis.h" #include "utils/elog.h" -//Norman Vine found this problem for compiling under cygwin -// it defines BYTE_ORDER and LITTLE_ENDIAN - -#ifdef __CYGWIN__ -#include // FOR ENDIAN DEFINES -#endif - #define SHOW_DIGS_DOUBLE 15 #define MAX_DIGS_DOUBLE (SHOW_DIGS_DOUBLE + 6 + 1 + 3 +1) diff --git a/postgis_fn.c b/postgis_fn.c index fd50110f8..b59bdc796 100644 --- a/postgis_fn.c +++ b/postgis_fn.c @@ -11,6 +11,10 @@ * ********************************************************************** * $Log$ + * Revision 1.23 2003/07/25 17:08:37 pramsey + * Moved Cygwin endian define out of source files into postgis.h common + * header file. + * * Revision 1.22 2003/07/01 18:30:55 pramsey * Added CVS revision headers. * @@ -36,14 +40,6 @@ #include "utils/elog.h" -//Norman Vine found this problem for compiling under cygwin -// it defines BYTE_ORDER and LITTLE_ENDIAN - -#ifdef __CYGWIN__ -#include // FOR ENDIAN DEFINES -#endif - - #define SHOW_DIGS_DOUBLE 15 #define MAX_DIGS_DOUBLE (SHOW_DIGS_DOUBLE + 6 + 1 + 3 +1) diff --git a/postgis_inout.c b/postgis_inout.c index 3b2f5fbac..0a3388b9b 100644 --- a/postgis_inout.c +++ b/postgis_inout.c @@ -11,6 +11,10 @@ * ********************************************************************** * $Log$ + * Revision 1.23 2003/07/25 17:08:37 pramsey + * Moved Cygwin endian define out of source files into postgis.h common + * header file. + * * Revision 1.22 2003/07/08 18:35:54 dblasby * changed asbinary_specify() so that it is more aware of TEXT being * un-terminated. @@ -44,14 +48,6 @@ #include "utils/elog.h" -//Norman Vine found this problem for compiling under cygwin -// it defines BYTE_ORDER and LITTLE_ENDIAN - -#ifdef __CYGWIN__ -#include // FOR ENDIAN DEFINES -#endif - - #define SHOW_DIGS_DOUBLE 15 #define MAX_DIGS_DOUBLE (SHOW_DIGS_DOUBLE + 6 + 1 + 3 +1) diff --git a/postgis_ops.c b/postgis_ops.c index 05aeb4eb5..3413b8e2e 100644 --- a/postgis_ops.c +++ b/postgis_ops.c @@ -11,6 +11,10 @@ * ********************************************************************** * $Log$ + * Revision 1.10 2003/07/25 17:08:37 pramsey + * Moved Cygwin endian define out of source files into postgis.h common + * header file. + * * Revision 1.9 2003/07/01 18:30:55 pramsey * Added CVS revision headers. * @@ -34,13 +38,6 @@ #include "postgis.h" #include "utils/elog.h" -//Norman Vine found this problem for compiling under cygwin -// it defines BYTE_ORDER and LITTLE_ENDIAN - -#ifdef __CYGWIN__ -#include // FOR ENDIAN DEFINES -#endif - #define SHOW_DIGS_DOUBLE 15 #define MAX_DIGS_DOUBLE (SHOW_DIGS_DOUBLE + 6 + 1 + 3 +1) -- 2.50.1