diff options
author | Torsten Jager <t.jager@gmx.de> | 2013-09-30 15:24:55 +0200 |
---|---|---|
committer | Torsten Jager <t.jager@gmx.de> | 2013-09-30 15:24:55 +0200 |
commit | 339c8a159ec32b5f327520ddff65872c457714d7 (patch) | |
tree | 614cd8a624dccaf626ad4424c4b84ab88f35347d | |
parent | 0ef1459b445791fae915bacd9de08e5d7f58bf4e (diff) | |
download | xine-lib-339c8a159ec32b5f327520ddff65872c457714d7.tar.gz xine-lib-339c8a159ec32b5f327520ddff65872c457714d7.tar.bz2 |
post.h: fix build regression #12387 and avoid nonportable __typeof__.
-rw-r--r-- | include/xine/post.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 <stddef.h> +#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 } \ |