changeset 37164:40dfa49bda69

headers: check that _GL_INLINE_HEADER_BEGIN is defined Suggested by Bruce Korb in: http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html * doc/extern-inline.texi (extern inline): Suggest checking that _GL_INLINE_HEADER_BEGIN is defined. * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h: * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h: * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h: * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h: * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h: * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h: * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h: * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h: * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h: * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h: * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h: * lib/xtime.h: Check that _GL_INLINE_HEADER_BEGIN is defined.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 28 Aug 2013 18:49:38 -0700
parents 94affa13dea1
children 46132d5e6afa
files ChangeLog doc/extern-inline.texi lib/acl-internal.h lib/argp-fmtstream.h lib/argp.h lib/binary-io.h lib/bitrotate.h lib/count-leading-zeros.h lib/count-one-bits.h lib/eealloc.h lib/execinfo.in.h lib/gethrxtime.h lib/gl_list.h lib/gl_oset.h lib/gl_xlist.h lib/gl_xoset.h lib/gl_xsublist.h lib/glthread/cond.h lib/glthread/thread.h lib/math.in.h lib/mbchar.h lib/mbfile.h lib/mbiter.h lib/mbuiter.h lib/openat.h lib/pipe-filter-aux.h lib/priv-set.h lib/pthread.in.h lib/savewd.h lib/se-context.in.h lib/se-selinux.in.h lib/sig-handler.h lib/stat-time.h lib/sys_socket.in.h lib/timespec.h lib/u64.h lib/unistd.in.h lib/utimens.h lib/wctype.in.h lib/xalloc.h lib/xsize.h lib/xtime.h
diffstat 42 files changed, 150 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Aug 18 02:05:51 2013 +0100
+++ b/ChangeLog	Wed Aug 28 18:49:38 2013 -0700
@@ -1,3 +1,24 @@
+2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
+
+	headers: check that _GL_INLINE_HEADER_BEGIN is defined
+	Suggested by Bruce Korb in:
+	http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00070.html
+	* doc/extern-inline.texi (extern inline):
+	Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
+	* lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
+	* lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
+	* lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
+	* lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
+	* lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
+	* lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
+	* lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
+	* lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
+	* lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
+	* lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
+	* lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
+	* lib/xtime.h:
+	Check that _GL_INLINE_HEADER_BEGIN is defined.
+
 2013-08-29  Pádraig Brady  <P@draigBrady.com>
 
 	bootstrap: remove the --version requirement from ancillary tools
--- a/doc/extern-inline.texi	Sun Aug 18 02:05:51 2013 +0100
+++ b/doc/extern-inline.texi	Wed Aug 28 18:49:38 2013 -0700
@@ -45,6 +45,9 @@
 @example
 /* aaa.h */
 /* #include any other headers here */
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef AAA_INLINE
 # define AAA_INLINE _GL_INLINE
--- a/lib/acl-internal.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/acl-internal.h	Wed Aug 28 18:49:38 2013 -0700
@@ -60,6 +60,9 @@
 # define fchmod(fd, mode) (-1)
 #endif
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef ACL_INTERNAL_INLINE
 # define ACL_INTERNAL_INLINE _GL_INLINE
--- a/lib/argp-fmtstream.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/argp-fmtstream.h	Wed Aug 28 18:49:38 2013 -0700
@@ -197,6 +197,9 @@
 #define __argp_fmtstream_point argp_fmtstream_point
 #define __argp_fmtstream_update _argp_fmtstream_update
 #define __argp_fmtstream_ensure _argp_fmtstream_ensure
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef ARGP_FS_EI
 # define ARGP_FS_EI _GL_INLINE
--- a/lib/argp.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/argp.h	Wed Aug 28 18:49:38 2013 -0700
@@ -579,6 +579,9 @@
 #  define __argp_state_help argp_state_help
 #  define __option_is_short _option_is_short
 #  define __option_is_end _option_is_end
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #  ifndef ARGP_EI
 #   define ARGP_EI _GL_INLINE
--- a/lib/binary-io.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/binary-io.h	Wed Aug 28 18:49:38 2013 -0700
@@ -25,6 +25,9 @@
    so we include it here first.  */
 #include <stdio.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef BINARY_IO_INLINE
 # define BINARY_IO_INLINE _GL_INLINE
--- a/lib/bitrotate.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/bitrotate.h	Wed Aug 28 18:49:38 2013 -0700
@@ -23,6 +23,9 @@
 #include <stdint.h>
 #include <sys/types.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef BITROTATE_INLINE
 # define BITROTATE_INLINE _GL_INLINE
--- a/lib/count-leading-zeros.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/count-leading-zeros.h	Wed Aug 28 18:49:38 2013 -0700
@@ -23,6 +23,9 @@
 #include <stdlib.h>
 #include "verify.h"
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef COUNT_LEADING_ZEROS_INLINE
 # define COUNT_LEADING_ZEROS_INLINE _GL_INLINE
--- a/lib/count-one-bits.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/count-one-bits.h	Wed Aug 28 18:49:38 2013 -0700
@@ -22,6 +22,9 @@
 #include <stdlib.h>
 #include "verify.h"
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef COUNT_ONE_BITS_INLINE
 # define COUNT_ONE_BITS_INLINE _GL_INLINE
--- a/lib/eealloc.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/eealloc.h	Wed Aug 28 18:49:38 2013 -0700
@@ -31,6 +31,9 @@
 
 #include <stdlib.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef EEALLOC_INLINE
 # define EEALLOC_INLINE _GL_INLINE
--- a/lib/execinfo.in.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/execinfo.in.h	Wed Aug 28 18:49:38 2013 -0700
@@ -20,6 +20,9 @@
 #ifndef _GL_EXECINFO_H
 #define _GL_EXECINFO_H
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_EXECINFO_INLINE
 # define _GL_EXECINFO_INLINE _GL_INLINE
--- a/lib/gethrxtime.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/gethrxtime.h	Wed Aug 28 18:49:38 2013 -0700
@@ -22,6 +22,9 @@
 
 #include "xtime.h"
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GETHRXTIME_INLINE
 # define GETHRXTIME_INLINE _GL_INLINE
--- a/lib/gl_list.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/gl_list.h	Wed Aug 28 18:49:38 2013 -0700
@@ -21,6 +21,9 @@
 #include <stdbool.h>
 #include <stddef.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_LIST_INLINE
 # define GL_LIST_INLINE _GL_INLINE
--- a/lib/gl_oset.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/gl_oset.h	Wed Aug 28 18:49:38 2013 -0700
@@ -21,6 +21,9 @@
 #include <stdbool.h>
 #include <stddef.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_OSET_INLINE
 # define GL_OSET_INLINE _GL_INLINE
--- a/lib/gl_xlist.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/gl_xlist.h	Wed Aug 28 18:49:38 2013 -0700
@@ -21,6 +21,9 @@
 #include "gl_list.h"
 #include "xalloc.h"
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_XLIST_INLINE
 # define GL_XLIST_INLINE _GL_INLINE
--- a/lib/gl_xoset.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/gl_xoset.h	Wed Aug 28 18:49:38 2013 -0700
@@ -21,6 +21,9 @@
 #include "gl_oset.h"
 #include "xalloc.h"
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_XOSET_INLINE
 # define GL_XOSET_INLINE _GL_INLINE
--- a/lib/gl_xsublist.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/gl_xsublist.h	Wed Aug 28 18:49:38 2013 -0700
@@ -22,6 +22,9 @@
 #include "gl_sublist.h"
 #include "xalloc.h"
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef GL_XSUBLIST_INLINE
 # define GL_XSUBLIST_INLINE _GL_INLINE
--- a/lib/glthread/cond.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/glthread/cond.h	Wed Aug 28 18:49:38 2013 -0700
@@ -54,6 +54,9 @@
 #include <time.h>
 
 #include "glthread/lock.h"
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GLTHREAD_COND_INLINE
--- a/lib/glthread/thread.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/glthread/thread.h	Wed Aug 28 18:49:38 2013 -0700
@@ -74,6 +74,9 @@
 #include <errno.h>
 #include <stdlib.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GLTHREAD_THREAD_INLINE
 # define _GLTHREAD_THREAD_INLINE _GL_INLINE
--- a/lib/math.in.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/math.in.h	Wed Aug 28 18:49:38 2013 -0700
@@ -28,6 +28,9 @@
 #ifndef _@GUARD_PREFIX@_MATH_H
 #define _@GUARD_PREFIX@_MATH_H
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_MATH_INLINE
 # define _GL_MATH_INLINE _GL_INLINE
--- a/lib/mbchar.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/mbchar.h	Wed Aug 28 18:49:38 2013 -0700
@@ -156,6 +156,9 @@
 #include <wchar.h>
 #include <wctype.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef MBCHAR_INLINE
 # define MBCHAR_INLINE _GL_INLINE
--- a/lib/mbfile.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/mbfile.h	Wed Aug 28 18:49:38 2013 -0700
@@ -62,6 +62,9 @@
 
 #include "mbchar.h"
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef MBFILE_INLINE
 # define MBFILE_INLINE _GL_INLINE
@@ -244,6 +247,9 @@
 
 #define mb_iseof(mbc) ((mbc).bytes == 0)
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 
 #endif /* _MBFILE_H */
--- a/lib/mbiter.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/mbiter.h	Wed Aug 28 18:49:38 2013 -0700
@@ -97,6 +97,9 @@
 
 #include "mbchar.h"
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef MBITER_INLINE
 # define MBITER_INLINE _GL_INLINE
--- a/lib/mbuiter.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/mbuiter.h	Wed Aug 28 18:49:38 2013 -0700
@@ -106,6 +106,9 @@
 #include "mbchar.h"
 #include "strnlen1.h"
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef MBUITER_INLINE
 # define MBUITER_INLINE _GL_INLINE
--- a/lib/openat.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/openat.h	Wed Aug 28 18:49:38 2013 -0700
@@ -26,6 +26,9 @@
 #include <unistd.h>
 #include <stdbool.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 
 #if !HAVE_OPENAT
--- a/lib/pipe-filter-aux.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/pipe-filter-aux.h	Wed Aug 28 18:49:38 2013 -0700
@@ -15,6 +15,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef PIPE_FILTER_AUX_INLINE
 # define PIPE_FILTER_AUX_INLINE _GL_INLINE
--- a/lib/priv-set.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/priv-set.h	Wed Aug 28 18:49:38 2013 -0700
@@ -17,6 +17,9 @@
 
    Written by David Bartley.  */
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef PRIV_SET_INLINE
 # define PRIV_SET_INLINE _GL_INLINE
--- a/lib/pthread.in.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/pthread.in.h	Wed Aug 28 18:49:38 2013 -0700
@@ -41,6 +41,9 @@
 #include <sys/types.h>
 #include <time.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_PTHREAD_INLINE
 # define _GL_PTHREAD_INLINE _GL_INLINE
--- a/lib/savewd.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/savewd.h	Wed Aug 28 18:49:38 2013 -0700
@@ -23,6 +23,9 @@
 #include <stdbool.h>
 #include <sys/types.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef SAVEWD_INLINE
 # define SAVEWD_INLINE _GL_INLINE
--- a/lib/se-context.in.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/se-context.in.h	Wed Aug 28 18:49:38 2013 -0700
@@ -3,6 +3,9 @@
 
 # include <errno.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef SE_CONTEXT_INLINE
 # define SE_CONTEXT_INLINE _GL_INLINE
--- a/lib/se-selinux.in.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/se-selinux.in.h	Wed Aug 28 18:49:38 2013 -0700
@@ -31,6 +31,9 @@
 #  include <sys/types.h>
 #  include <errno.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #  ifndef SE_SELINUX_INLINE
 #   define SE_SELINUX_INLINE _GL_INLINE
@@ -108,6 +111,9 @@
 #   define GNULIB_defined_security_types 1
 #  endif
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 
 # endif
--- a/lib/sig-handler.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/sig-handler.h	Wed Aug 28 18:49:38 2013 -0700
@@ -20,6 +20,9 @@
 
 #include <signal.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef SIG_HANDLER_INLINE
 # define SIG_HANDLER_INLINE _GL_INLINE
--- a/lib/stat-time.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/stat-time.h	Wed Aug 28 18:49:38 2013 -0700
@@ -23,6 +23,9 @@
 #include <sys/stat.h>
 #include <time.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_STAT_TIME_INLINE
 # define _GL_STAT_TIME_INLINE _GL_INLINE
--- a/lib/sys_socket.in.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/sys_socket.in.h	Wed Aug 28 18:49:38 2013 -0700
@@ -63,6 +63,9 @@
 #ifndef _@GUARD_PREFIX@_SYS_SOCKET_H
 #define _@GUARD_PREFIX@_SYS_SOCKET_H
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_SYS_SOCKET_INLINE
 # define _GL_SYS_SOCKET_INLINE _GL_INLINE
--- a/lib/timespec.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/timespec.h	Wed Aug 28 18:49:38 2013 -0700
@@ -21,6 +21,9 @@
 
 # include <time.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_TIMESPEC_INLINE
 # define _GL_TIMESPEC_INLINE _GL_INLINE
--- a/lib/u64.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/u64.h	Wed Aug 28 18:49:38 2013 -0700
@@ -19,6 +19,9 @@
 
 #include <stdint.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_U64_INLINE
 # define _GL_U64_INLINE _GL_INLINE
--- a/lib/unistd.in.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/unistd.in.h	Wed Aug 28 18:49:38 2013 -0700
@@ -116,6 +116,9 @@
 # include <getopt.h>
 #endif
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_UNISTD_INLINE
 # define _GL_UNISTD_INLINE _GL_INLINE
--- a/lib/utimens.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/utimens.h	Wed Aug 28 18:49:38 2013 -0700
@@ -26,6 +26,9 @@
 # include <fcntl.h>
 # include <sys/stat.h>
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_UTIMENS_INLINE
 # define _GL_UTIMENS_INLINE _GL_INLINE
--- a/lib/wctype.in.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/wctype.in.h	Wed Aug 28 18:49:38 2013 -0700
@@ -61,6 +61,9 @@
 #ifndef _@GUARD_PREFIX@_WCTYPE_H
 #define _@GUARD_PREFIX@_WCTYPE_H
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef _GL_WCTYPE_INLINE
 # define _GL_WCTYPE_INLINE _GL_INLINE
--- a/lib/xalloc.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/xalloc.h	Wed Aug 28 18:49:38 2013 -0700
@@ -22,6 +22,9 @@
 
 #include "xalloc-oversized.h"
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef XALLOC_INLINE
 # define XALLOC_INLINE _GL_INLINE
--- a/lib/xsize.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/xsize.h	Wed Aug 28 18:49:38 2013 -0700
@@ -27,6 +27,9 @@
 # include <stdint.h>
 #endif
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef XSIZE_INLINE
 # define XSIZE_INLINE _GL_INLINE
--- a/lib/xtime.h	Sun Aug 18 02:05:51 2013 +0100
+++ b/lib/xtime.h	Wed Aug 28 18:49:38 2013 -0700
@@ -20,6 +20,9 @@
 #ifndef XTIME_H_
 #define XTIME_H_ 1
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 #ifndef XTIME_INLINE
 # define XTIME_INLINE _GL_INLINE