Use __typeof__ instead of typeof
[babeltrace.git] / src / compat / compiler.h
index 2c852742d9007f4ba6f6160ae4ea6942d0c32d53..90e80da89c097ee2132c94cf5080e99e08b9eb2a 100644 (file)
@@ -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.023388 seconds and 4 git commands to generate.