aboutsummaryrefslogtreecommitdiff
path: root/multimedia/libxine/files/patch-src:xine-engine:post.h
blob: 3c62c9b35631390c50db5084eeef37f44e4860ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- src/xine-engine/post.h.orig	2010-06-03 15:54:12.000000000 +0200
+++ src/xine-engine/post.h	2010-06-03 15:59:20.000000000 +0200
@@ -377,7 +377,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 } \