diff options
author | jmr@macports.org <jmr@macports.org> | 2012-05-21 13:29:28 -0500 |
---|---|---|
committer | jmr@macports.org <jmr@macports.org> | 2012-05-21 13:29:28 -0500 |
commit | 6b3ab6fcfbeef4c604cfe5819ede30d60c620d3b (patch) | |
tree | 0c1a3b38dd9c9e68ca0cc0b866223238313b466f /include | |
parent | 2e2f94b0d827b7c4ad6ebec5c51d11f704a9b36f (diff) | |
download | xine-lib-6b3ab6fcfbeef4c604cfe5819ede30d60c620d3b.tar.gz xine-lib-6b3ab6fcfbeef4c604cfe5819ede30d60c620d3b.tar.bz2 |
xine-lib: more fixes to allow building with clang
Diffstat (limited to 'include')
-rw-r--r-- | include/xine/post.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 } \ |