Put PG_MODULE_MAGIC in raster and postgis source files rather than in libpgcommon...
authorSandro Santilli <strk@keybit.net>
Sat, 20 Aug 2011 21:17:14 +0000 (21:17 +0000)
committerSandro Santilli <strk@keybit.net>
Sat, 20 Aug 2011 21:17:14 +0000 (21:17 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7773 b70326c6-7e19-0410-871a-916f4a2858ee

libpgcommon/lwgeom_pg.c
postgis/lwgeom_functions_basic.c
raster/rt_pg/rt_pg.c

index 378cf30ecc66f5d4a358cd7094546dc625cd02fe..52d0bec042a3d240ac4507e6fbc8c2ba86454394 100644 (file)
 #define PARANOIA_LEVEL 1
 
 /*
- * This is required for builds against pgsql 8.2
+ * For win32, this can not be in a separate libary
+ * See ticket #1158
  */
-#ifdef PG_MODULE_MAGIC
-PG_MODULE_MAGIC;
-#endif
+/* PG_MODULE_MAGIC; */
 
 /**
 * Utility to convert cstrings to textp pointers 
index b3e13a377c6e69b1ad7fc5c1ba363184b59fe902..5493d67f824da79c1fab38dbf4cb58f4ab55be6c 100644 (file)
 #include <stdio.h>
 #include <errno.h>
 
+/*
+ * This is required for builds against pgsql
+ */
+PG_MODULE_MAGIC;
+
 Datum LWGEOM_mem_size(PG_FUNCTION_ARGS);
 Datum LWGEOM_summary(PG_FUNCTION_ARGS);
 Datum LWGEOM_npoints(PG_FUNCTION_ARGS);
index 25738cec516501b6599e5b29a6e8098498ff49d1..3e20e08f6150f320f66a990b266c07c7959f0def 100644 (file)
 #define MAX_INT_CHARLEN 32
 
 /*
- * This is required for builds against pgsql 8.2
+ * This is required for builds against pgsql 
  */
-#if 0 /* defined by libpgcommon { */
-#ifdef PG_MODULE_MAGIC
 PG_MODULE_MAGIC;
-#endif
-#endif /* defined by libpgcommon } */
 
 /* Internal funcs */
 static char * replace(const char *str, const char *oldstr, const char *newstr,