#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
#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);
#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,