diff options
Diffstat (limited to 'source4/librpc/ndr/libndr.h')
-rw-r--r-- | source4/librpc/ndr/libndr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/librpc/ndr/libndr.h b/source4/librpc/ndr/libndr.h index 17c06b79da..328fa7c703 100644 --- a/source4/librpc/ndr/libndr.h +++ b/source4/librpc/ndr/libndr.h @@ -191,6 +191,8 @@ enum ndr_compression_alg { #define NDR_ALIGN(ndr, n) ndr_align_size(ndr->offset, n) +#define NDR_ROUND(size, n) (((size)+((n)-1)) & ~((n)-1)) + #define NDR_PULL_ALIGN(ndr, n) do { \ if (!(ndr->flags & LIBNDR_FLAG_NOALIGN)) { \ if (ndr->flags & LIBNDR_FLAG_PAD_CHECK) { \ |