diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2021-05-07 13:47:49 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2021-05-07 13:47:49 +0300 |
commit | 3ff55e2709303f132d63d9cfa68b5d8d3616b1a9 (patch) | |
tree | e56ff4668e1c74d7f9ea97a80de1c8b887aa173b /support/libc-config.h | |
parent | bd26081fcdfa8b7b566ce970baa53bfe05ca552e (diff) | |
parent | aa6a71c05ac79553f88583264179054998037f90 (diff) | |
download | egawk-3ff55e2709303f132d63d9cfa68b5d8d3616b1a9.tar.gz egawk-3ff55e2709303f132d63d9cfa68b5d8d3616b1a9.tar.bz2 egawk-3ff55e2709303f132d63d9cfa68b5d8d3616b1a9.zip |
Merge branch 'master' into feature/docit
Diffstat (limited to 'support/libc-config.h')
-rw-r--r-- | support/libc-config.h | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/support/libc-config.h b/support/libc-config.h index fcdafcb9..fabca2fa 100644 --- a/support/libc-config.h +++ b/support/libc-config.h @@ -33,9 +33,9 @@ #include <config.h> /* On glibc this includes <features.h> and <sys/cdefs.h> and #defines - _FEATURES_H, __WORDSIZE, and __set_errno. On FreeBSD 11 it - includes <sys/cdefs.h> which defines __nonnull. Elsewhere it - is harmless. */ + _FEATURES_H, __WORDSIZE, and __set_errno. On FreeBSD 11 and + DragonFlyBSD 5.9 it includes <sys/cdefs.h> which defines __nonnull. + Elsewhere it is harmless. */ #include <errno.h> /* From glibc <errno.h>. */ @@ -71,7 +71,7 @@ # endif #endif -#ifndef __attribute_maybe_unused__ +#ifndef __attribute_nonnull__ /* <sys/cdefs.h> either does not exist, or is too old for Gnulib. Prepare to include <cdefs.h>, which is Gnulib's version of a more-recent glibc <sys/cdefs.h>. */ @@ -80,13 +80,9 @@ # ifndef _FEATURES_H # define _FEATURES_H 1 # endif -/* Define __WORDSIZE so that <cdefs.h> does not attempt to include - nonexistent files. Make it a syntax error, since Gnulib does not - use __WORDSIZE now, and if Gnulib uses it later the syntax error - will let us know that __WORDSIZE needs configuring. */ -# ifndef __WORDSIZE -# define __WORDSIZE %%% -# endif +/* Define __GNULIB_CDEFS so that <cdefs.h> does not attempt to include + nonexistent files. */ +# define __GNULIB_CDEFS /* Undef the macros unconditionally defined by our copy of glibc <sys/cdefs.h>, so that they do not clash with any system-defined versions. */ |