summaryrefslogtreecommitdiff
path: root/lib/birdlib.h
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2022-04-10 14:11:46 +0200
committerMaria Matejka <mq@ucw.cz>2022-05-04 15:37:41 +0200
commitde86040b2cf4ec9bfbb64f0e208a19d4d7e51adc (patch)
tree930de20f9c75a4a2e4f9bb281dd1499888ae8b6a /lib/birdlib.h
parent0b871c170472202770691af8995766ee57920fdc (diff)
Attribute list normalization cleanup
Diffstat (limited to 'lib/birdlib.h')
-rw-r--r--lib/birdlib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h
index 81d4908a..6f0bab96 100644
--- a/lib/birdlib.h
+++ b/lib/birdlib.h
@@ -19,6 +19,7 @@ struct align_probe { char x; long int y; };
#define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i)))
#define BIRD_ALIGN(s, a) (((s)+a-1)&~(a-1))
#define CPU_STRUCT_ALIGN (sizeof(struct align_probe))
+#define BIRD_CPU_ALIGN(s) BIRD_ALIGN((s), CPU_STRUCT_ALIGN)
/* Utility macros */