]> granicus.if.org Git - postgis/commitdiff
Wrapped PROJ4SRSCacheCheck function in ifdef MEMORY_CONTEXT_CHECKING block, to avoid...
authorSandro Santilli <strk@keybit.net>
Fri, 25 Nov 2005 16:11:34 +0000 (16:11 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 25 Nov 2005 16:11:34 +0000 (16:11 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2075 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_transform.c

index b0bf253c7718b81882b46a1faafa026f92605a83..64f737b4fa2435799e838e5d4632a24671b4600e 100644 (file)
@@ -129,7 +129,9 @@ void DeleteFromPROJ4SRSCache(PROJ4PortalCache *PROJ4Cache, int srid);
 // Memory context cache functions
 static void PROJ4SRSCacheInit(MemoryContext context);
 static void PROJ4SRSCacheDelete(MemoryContext context);
+#ifdef MEMORY_CONTEXT_CHECKING
 static void PROJ4SRSCacheCheck(MemoryContext context);
+#endif
 
 
 // Memory context definition must match the current version of PostgreSQL
@@ -209,11 +211,13 @@ PROJ4SRSCacheDelete(MemoryContext context)
        DeletePJHashEntry(context);
 }
 
+#ifdef MEMORY_CONTEXT_CHECKING
 static void
 PROJ4SRSCacheCheck(MemoryContext context)
 {
        // Do nothing - stub required for when PostgreSQL is compiled with MEMORY_CONTEXT_CHECKING defined
 }
+#endif
 
 
 //