X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Flttng%2Falign.h;h=4b3c1709945735c52497a09d7effa0b382af878b;hb=6423c3134bf07d4a7db56f69f2c79b540a79c4f1;hp=f2163e08d56c74918e026347ef43e3054c3c05cb;hpb=3bdb579ff4ef67785927e73f96f8a5c056e883b0;p=lttng-ust.git diff --git a/include/lttng/align.h b/include/lttng/align.h index f2163e08..4b3c1709 100644 --- a/include/lttng/align.h +++ b/include/lttng/align.h @@ -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) /**