]> git.proxmox.com Git - mirror_lxcfs.git/commitdiff
macro: use ISO C compatible __typeof__
authorChristian Brauner <christian.brauner@ubuntu.com>
Fri, 5 Jun 2020 10:12:32 +0000 (12:12 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 5 Jun 2020 18:43:14 +0000 (14:43 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/macro.h

index aba00bf97ce7ea41846c74d80a62e3dc4701acf1..da7936a017c111f37c15735689ab176d6122b4d1 100644 (file)
@@ -85,7 +85,7 @@
 
 #define move_ptr(ptr)                                 \
        ({                                            \
-               typeof(ptr) __internal_ptr__ = (ptr); \
+               __typeof__(ptr) __internal_ptr__ = (ptr); \
                (ptr) = NULL;                         \
                __internal_ptr__;                     \
        })