diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-05-16 14:18:25 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-05-16 14:56:01 +0200 |
commit | 1c5b4c5d5b937fe6bbc3a599296e40a05f022b33 (patch) | |
tree | 485b23852778fce1320dc9cf4c5180cdbf6be788 /lib | |
parent | fd1f355b7b24f354f7d57f127911b4fd98354b34 (diff) | |
parent | b845ea097c285f17641d60df3dea4d3e820a1475 (diff) |
Merge branch 'master' into int-new
Diffstat (limited to 'lib')
-rw-r--r-- | lib/birdlib.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h index c82082c1..317b5202 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -14,9 +14,12 @@ /* Ugly structure offset handling macros */ +struct align_probe { char x; long int y; }; + #define OFFSETOF(s, i) ((size_t) &((s *)0)->i) #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)) /* Utility macros */ |