summaryrefslogtreecommitdiff
path: root/pbstruct.c
diff options
context:
space:
mode:
Diffstat (limited to 'pbstruct.c')
-rw-r--r--pbstruct.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/pbstruct.c b/pbstruct.c
index 97e0a9f..2c52930 100644
--- a/pbstruct.c
+++ b/pbstruct.c
@@ -8,4 +8,5 @@
#include "pbstruct.h"
#define alignof(t) offsetof(struct { char c; t x; }, x)
+#define ALIGN_UP(p, t) (alignof(t) + ((p - 1) & ~(alignof(t) - 1)))
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback