projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use __typeof__ instead of typeof
[babeltrace.git]
/
src
/
compat
/
compiler.h
diff --git
a/src/compat/compiler.h
b/src/compat/compiler.h
index 2c852742d9007f4ba6f6160ae4ea6942d0c32d53..90e80da89c097ee2132c94cf5080e99e08b9eb2a 100644
(file)
--- a/
src/compat/compiler.h
+++ b/
src/compat/compiler.h
@@
-14,7
+14,7
@@
#ifndef container_of
#define container_of(ptr, type, member) \
({ \
- const
typeof(((type *)NULL)->member) * __ptr = (ptr);
\
+ const
__typeof__(((type *)NULL)->member) * __ptr = (ptr);
\
(type *)((char *)__ptr - offsetof(type, member)); \
})
#endif
This page took
0.023045 seconds
and
4
git commands to generate.