From: Paul Eggert Date: Sun, 16 Oct 2011 23:59:46 +0000 (-0700) Subject: argp: use stdalign X-Git-Tag: v0.1~1530 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=bebd93f5da72542b6e867a5fd1e2c524e0fae1c1;p=gnulib.git argp: use stdalign * lib/argp-parse.c: Include . (alignof): Remove. * modules/argp (Depends-on): Add stdalign. --- diff --git a/ChangeLog b/ChangeLog index 7b607346ee..0b9d921381 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,11 @@ stdalign-tests: new module * modules/stdalign-tests, tests/test-stdalign.c: New files. + argp: use stdalign + * lib/argp-parse.c: Include . + (alignof): Remove. + * modules/argp (Depends-on): Add stdalign. + 2011-10-27 Bruno Haible raise test: Avoid a test failure on Linux/MIPS. diff --git a/lib/argp-parse.c b/lib/argp-parse.c index 5cab8cec35..64360beac0 100644 --- a/lib/argp-parse.c +++ b/lib/argp-parse.c @@ -21,6 +21,7 @@ #endif #include +#include #include #include #include @@ -42,7 +43,6 @@ #include "argp.h" #include "argp-namefrob.h" -#define alignof(type) offsetof (struct { char c; type x; }, x) #define alignto(n, d) ((((n) + (d) - 1) / (d)) * (d)) /* Getopt return values. */ diff --git a/modules/argp b/modules/argp index fa39580eaf..8d496812d8 100644 --- a/modules/argp +++ b/modules/argp @@ -35,6 +35,7 @@ strcase extensions vsnprintf sleep +stdalign strerror memchr memmove