From 339c8a159ec32b5f327520ddff65872c457714d7 Mon Sep 17 00:00:00 2001 From: Torsten Jager Date: Mon, 30 Sep 2013 15:24:55 +0200 Subject: post.h: fix build regression #12387 and avoid nonportable __typeof__. --- include/xine/post.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/xine') diff --git a/include/xine/post.h b/include/xine/post.h index 31899c489..f8893710b 100644 --- a/include/xine/post.h +++ b/include/xine/post.h @@ -392,12 +392,17 @@ do { \ /* macros to create parameter descriptors */ #define START_PARAM_DESCR( param_t ) \ +typedef param_t temp_t; \ static param_t temp_s; \ static xine_post_api_parameter_t temp_p[] = { +#ifndef offsetof +#include +#endif + #define PARAM_ITEM( param_type, var, enumv, min, max, readonly, descr ) \ { param_type, #var, sizeof(temp_s.var), \ - offsetof(__typeof__(temp_s), var), enumv, min, max, readonly, descr }, + offsetof(temp_t, 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