diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-19 13:36:13 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2016-07-19 13:36:13 +0000 |
commit | af5633117326edd60450c53218694c3e0a895639 (patch) | |
tree | b6879fc1b21fcf25e8f558cc4d83f3c02404bbec /configure | |
parent | 0d64a6e6bb89ff458faef3450acd365244bcf4a8 (diff) | |
download | mandoc-af5633117326edd60450c53218694c3e0a895639.tar.gz |
Use __attribute__((__format__ throughout.
Triggered by a smaller patch from Christos Zoulas.
While here, unify style, move several config tests to config.h,
and delete the useless MANDOC_CONFIG_H.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -285,8 +285,9 @@ cat << __HEREDOC__ #error "Do not use C++. See the INSTALL file." #endif -#ifndef MANDOC_CONFIG_H -#define MANDOC_CONFIG_H +#if !defined(__GNUC__) || (__GNUC__ < 4) +#define __attribute__(x) +#endif #if defined(__linux__) || defined(__MINT__) #define _GNU_SOURCE /* See test-*.c what needs this. */ @@ -391,9 +392,6 @@ fi [ ${HAVE_VASPRINTF} -eq 0 ] && \ echo "extern int vasprintf(char **, const char *, va_list);" -echo -echo "#endif /* MANDOC_CONFIG_H */" - echo "config.h: written" 1>&2 echo "config.h: written" 1>&3 |