projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Port: build shared libraries in Cygwin
[urcu.git]
/
urcu
/
compiler.h
diff --git
a/urcu/compiler.h
b/urcu/compiler.h
index 4b3185529bd886a0de8d906d465712a28ebb470c..511dbdf302456d46329bce98e1147b7c34a51543 100644
(file)
--- a/
urcu/compiler.h
+++ b/
urcu/compiler.h
@@
-64,6
+64,7
@@
* @member: name of the field within the object.
*/
#define caa_container_of(ptr, type, member) \
* @member: name of the field within the object.
*/
#define caa_container_of(ptr, type, member) \
+ __extension__ \
({ \
const __typeof__(((type *) NULL)->member) * __ptr = (ptr); \
(type *)((char *)__ptr - offsetof(type, member)); \
({ \
const __typeof__(((type *) NULL)->member) * __ptr = (ptr); \
(type *)((char *)__ptr - offsetof(type, member)); \
This page took
0.023751 seconds
and
4
git commands to generate.