summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-10-16 16:59:46 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-10-27 13:05:42 -0700
commitbebd93f5da72542b6e867a5fd1e2c524e0fae1c1 (patch)
treef3513774ae8280ad2884a02cf5a0d5f636b5bbad /lib
parentf335f3403011808afd7b7ee72253eb86d7ddd611 (diff)
downloadgnulib-bebd93f5da72542b6e867a5fd1e2c524e0fae1c1.tar.gz
argp: use stdalign
* lib/argp-parse.c: Include <stdalign.h>. (alignof): Remove. * modules/argp (Depends-on): Add stdalign.
Diffstat (limited to 'lib')
-rw-r--r--lib/argp-parse.c2
1 files changed, 1 insertions, 1 deletions
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 <alloca.h>
+#include <stdalign.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
@@ -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. */