Fix c99 compatibility: use __typeof__ instead of typeof in public headers
[lttng-ust.git] / include / lttng / align.h
index f2163e08d56c74918e026347ef43e3054c3c05cb..4b3c1709945735c52497a09d7effa0b382af878b 100644 (file)
@@ -27,7 +27,7 @@
 
 #define PAGE_MASK              (~(PAGE_SIZE - 1))
 #define __ALIGN_MASK(v, mask)  (((v) + (mask)) & ~(mask))
-#define ALIGN(v, align)                __ALIGN_MASK(v, (typeof(v)) (align) - 1)
+#define ALIGN(v, align)                __ALIGN_MASK(v, (__typeof__(v)) (align) - 1)
 #define PAGE_ALIGN(addr)       ALIGN(addr, PAGE_SIZE)
 
 /**
This page took 0.022844 seconds and 4 git commands to generate.