]> Savannah Git Hosting - gnulib.git/commit
obstack: prefer alignof to calculating alignments by hand
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Oct 2014 07:22:08 +0000 (00:22 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 29 Oct 2014 07:23:39 +0000 (00:23 -0700)
commite8f86ce95e515ef9d2ed7c0cdf203fb31482c3d6
tree7f73c40dd9e95c4644c6203bbe437f68ca2b79d8
parent6c34297a9143b66bd69a1748a59662c45257f5f6
obstack: prefer alignof to calculating alignments by hand

* lib/obstack.c: Include <stdalign.h>.
(struct fooalign): Remove.
(DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
* modules/obstack (Depends-on): Add stdalign.
ChangeLog
lib/obstack.c
modules/obstack