From 6b3ab6fcfbeef4c604cfe5819ede30d60c620d3b Mon Sep 17 00:00:00 2001 From: "jmr@macports.org" Date: Mon, 21 May 2012 13:29:28 -0500 Subject: xine-lib: more fixes to allow building with clang --- include/xine/post.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/xine/post.h b/include/xine/post.h index c7e1e1cf0..31899c489 100644 --- a/include/xine/post.h +++ b/include/xine/post.h @@ -397,7 +397,7 @@ static xine_post_api_parameter_t temp_p[] = { #define PARAM_ITEM( param_type, var, enumv, min, max, readonly, descr ) \ { param_type, #var, sizeof(temp_s.var), \ - (char*)&temp_s.var-(char*)&temp_s, enumv, min, max, readonly, descr }, + offsetof(__typeof__(temp_s), var), enumv, min, max, readonly, descr }, #define END_PARAM_DESCR( name ) \ { POST_PARAM_TYPE_LAST, NULL, 0, 0, NULL, 0, 0, 1, NULL } \ -- cgit v1.2.3