summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/xine/post.h7
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 } \