summaryrefslogtreecommitdiff
path: root/lib/birdlib.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-16 14:18:25 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-16 14:56:01 +0200
commit1c5b4c5d5b937fe6bbc3a599296e40a05f022b33 (patch)
tree485b23852778fce1320dc9cf4c5180cdbf6be788 /lib/birdlib.h
parentfd1f355b7b24f354f7d57f127911b4fd98354b34 (diff)
parentb845ea097c285f17641d60df3dea4d3e820a1475 (diff)
Merge branch 'master' into int-new
Diffstat (limited to 'lib/birdlib.h')
-rw-r--r--lib/birdlib.h3
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 */