projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix c99 compatibility: use __typeof__ instead of typeof in public headers
[lttng-ust.git]
/
include
/
lttng
/
align.h
diff --git
a/include/lttng/align.h
b/include/lttng/align.h
index f2163e08d56c74918e026347ef43e3054c3c05cb..4b3c1709945735c52497a09d7effa0b382af878b 100644
(file)
--- 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 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)
/**
#define PAGE_ALIGN(addr) ALIGN(addr, PAGE_SIZE)
/**
This page took
0.02345 seconds
and
4
git commands to generate.