summaryrefslogtreecommitdiff
path: root/lib/birdlib.h
diff options
context:
space:
mode:
authorOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-11 01:29:39 +0200
committerOndrej Zajicek (work) <santiago@crfreenet.org>2017-05-16 13:05:00 +0200
commitb845ea097c285f17641d60df3dea4d3e820a1475 (patch)
treef8580158aa806ea4dff52ee9d207914d1876fda9 /lib/birdlib.h
parentb81a73d1fbddda4c319899910d751215ff3d29ca (diff)
Remove autoconf macros for time_t and alignment
Replaced by constant compile-time expressions. CPU_STRUCT_ALIGN is not really correct, but is consistent with the old behavior.
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 37337078..d21cdf1f 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 */