Commit a8165f61 authored by J. R. Okajima's avatar J. R. Okajima
Browse files

Merge branch 'aufs5.1/30stdalone' into aufs5.2/30stdalone

parents dcc0db22 b4e00d4f
...@@ -254,7 +254,11 @@ enum { ...@@ -254,7 +254,11 @@ enum {
/* borrowed from linux/include/linux/kernel.h */ /* borrowed from linux/include/linux/kernel.h */
#ifndef ALIGN #ifndef ALIGN
#ifdef _GNU_SOURCE
#define ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a)-1) #define ALIGN(x, a) __ALIGN_MASK(x, (typeof(x))(a)-1)
#else
#define ALIGN(x, a) (((x) + (a) - 1) & ~((a) - 1))
#endif
#define __ALIGN_MASK(x, mask) (((x)+(mask))&~(mask)) #define __ALIGN_MASK(x, mask) (((x)+(mask))&~(mask))
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment