[mapserver-commits] r12262 - trunk/mapserver/mapcache/include
svn at osgeo.org
svn at osgeo.org
Fri Aug 26 07:11:58 EDT 2011
Author: tbonfort
Date: 2011-08-26 04:11:58 -0700 (Fri, 26 Aug 2011)
New Revision: 12262
Modified:
trunk/mapserver/mapcache/include/util.h
Log:
add a comment wrt to the static char allocation
thomas.bonfort | 2011-01-17 21:50:06 +0100 (Mon, 17 Jan 2011)
Modified: trunk/mapserver/mapcache/include/util.h
===================================================================
--- trunk/mapserver/mapcache/include/util.h 2011-08-26 11:11:51 UTC (rev 12261)
+++ trunk/mapserver/mapcache/include/util.h 2011-08-26 11:11:58 UTC (rev 12262)
@@ -15,12 +15,22 @@
*/
#include <apr_version.h>
+#include <apr_tables.h>
+
#ifndef UTIL_H_
#define UTIL_H_
#define GEOCACHE_MAX(a,b) (((a)>(b))?(a):(b))
#define GEOCACHE_MIN(a,b) (((a)<(b))?(a):(b))
+#ifndef APR_ARRAY_IDX
+#define APR_ARRAY_IDX(ary,i,type) (((type *)(ary)->elts)[i])
+#endif
+
+#ifndef APR_ARRAY_PUSH
+#define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
+#endif
+
#if APR_MAJOR_VERSION < 2 && APR_MINOR_VERSION < 3
More information about the mapserver-commits
mailing list