Fix c99 compatibility: use __typeof__ instead of typeof in public headers
[lttng-ust.git] / include / lttng / align.h
index 9154051e33e59363cf24ee77a065dd675ab976b6..913327a8aac02d0db5a01db5f4fddb1676edf19e 100644 (file)
@@ -23,7 +23,7 @@
 #define PAGE_SIZE              sysconf(_SC_PAGE_SIZE)
 #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.02384 seconds and 4 git commands to generate.