File gwc-compile-fix.diff of Package gwc
--- meschach/matrix.h-dist 2006-12-20 13:39:38.000000000 +0100
+++ meschach/matrix.h 2006-12-20 13:40:26.000000000 +0100
@@ -123,9 +123,7 @@ void m_version( void );
/* re-allocate arry to have num objects of the given type */
#define RENEW(var,num,type) \
- ((var)=(type *)((var) ? \
- realloc((char *)(var),(size_t)(num)*sizeof(type)) : \
- calloc((size_t)(num),sizeof(type))))
+ ((var)=(type *)realloc((char *)(var),(size_t)(num)*sizeof(type)), (var))
#define MEMCOPY(from,to,n_items,type) \
MEM_COPY((char *)(from),(char *)(to),(size_t)(n_items)*sizeof(type))
@@ -139,9 +137,7 @@ void m_version( void );
/* re-allocate arry to have num objects of the given type */
#define RENEW(var,num,type) \
- ((var)=(type *)((var) ? \
- realloc((char *)(var),(size_t)((num)*sizeof(type))) : \
- calloc((size_t)(num),(size_t)sizeof(type))))
+ ((var)=(type *)realloc((char *)(var),(size_t)((num)*sizeof(type))), (var))
#define MEMCOPY(from,to,n_items,type) \
MEM_COPY((char *)(from),(char *)(to),(unsigned)(n_items)*sizeof(type))