From 601faffba8b1f9056351fb5dc85625d7c269d20d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 16 Jun 2005 16:39:42 +0000 Subject: [PATCH] add rk_UNCONST that can be used to unconstify variables to avoid api problems that -Wcast-qual will detect git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15410 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/roken-common.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/roken/roken-common.h b/lib/roken/roken-common.h index d3cf126e2..4b4bc2a95 100644 --- a/lib/roken/roken-common.h +++ b/lib/roken/roken-common.h @@ -258,6 +258,8 @@ #define __attribute__(x) #endif +#define rk_UNCONST(x) ((void *)(unsigned long)(const void *)(x)) + ROKEN_CPP_START #ifndef IRIX4 /* fix for compiler bug */