From c8d67b2686796b70c946fcd98d72d4c2828b51e8 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Mon, 2 Mar 2009 00:28:44 -0800 Subject: More refactoring of structures. pbstream_internal.h is now where even lower-level parsing functions go. --- pbstruct.c | 1 + 1 file changed, 1 insertion(+) (limited to 'pbstruct.c') 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))) -- cgit v1.2.3