]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
headers: check that _GL_INLINE_HEADER_BEGIN is defined
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Aug 2013 01:49:38 +0000 (18:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 29 Aug 2013 01:50:05 +0000 (18:50 -0700)
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.

42 files changed:
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

index db4c4db6e95455751670f0e360906aae08712bad..949bb048b5932740dcaa1fa761b054c00ea2cb14 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index 1519bc4a0d002a69c8b70bdb5d72286a6c4b7ac6..be97f4ea327c9939a72b1b4fba40d1c4e81c7c86 100644 (file)
@@ -45,6 +45,9 @@ To avoid this code bloat, @file{aaa.h} can do this:
 @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
index 7e6d77a5fd49b474bf53edc91a54b51194d9ff7c..55c224ca883dbc8fb2179e85f2c70bb6d7d39a9c 100644 (file)
@@ -60,6 +60,9 @@ extern int aclsort (int, int, struct acl *);
 # 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
index 000090ea68d1592e9a9f4e5bb9811b6b9c46f5fb..0222d1d49cf9682128c9903dd2f04ac735e27c91 100644 (file)
@@ -197,6 +197,9 @@ extern int __argp_fmtstream_ensure (argp_fmtstream_t __fs, size_t __amount);
 #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
index c4094a40c334cab00ac218240cdf212181de3998..a5f686a9756d255a53fbfe85f51e254cb8e99fd7 100644 (file)
@@ -579,6 +579,9 @@ extern void *__argp_input (const struct argp *__restrict __argp,
 #  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
index 317fe3d3c20470fa779a6f72dd1a62833b12f9d5..423c2ae3fff0dde3af15e36005f6cfcf8d25b1bd 100644 (file)
@@ -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
index 9e10a45f439de8e873efba243ef51de05c493c6e..be2e407a64a06a49d37be96efb40e68f477c1f53 100644 (file)
@@ -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
index 470a44347db1b227422ff4b0c4903fe999b3ef4e..204fa5a8ecd3e402641b6471afd1053751eb0afa 100644 (file)
@@ -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
index 3cb9ecaca9e4ece8b5abd09b0a41456a1d89a3a6..ce9d67ecb7edea30ad7a25d85e3b4ea8ae6d8425 100644 (file)
@@ -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
index cc2972685a3773ffb654ae609ec70562f4391e8e..92b13c9e763bdde77c4fc4e72e3d6e81f65a5def 100644 (file)
@@ -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
index b62e183b7e2446bdde9836db9054546b0fb09cb1..919565f0d9124de402d0216f0b8fa95860f76178 100644 (file)
@@ -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
index 10df67129ebcecc07d3a68a99425d08741fb93da..959f0ed6a0044e2db1f6ae812504b3eb702da1c0 100644 (file)
@@ -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
index 58a92deca97f00c0eeb5046919e9dba721e08dd1..9094723fe532f617170e75bed94680db49f44e51 100644 (file)
@@ -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
index 575ffd3c307f968c081b0ac8fcfe58bf48760644..5134065e5e2061267026389c711e988984501cf2 100644 (file)
@@ -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
index 759bfe6bb6b42191ba3144a7e340a6dd108e7d29..1c9451c1ab02908c026f8587e9b91d4e7fd8c394 100644 (file)
@@ -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
index 7ab0d496e07d1b43b56a5ddb295367f639cfc970..b30b2ced83249a65fa3331e5ec0050ed353d77bb 100644 (file)
@@ -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
index 725d3e16199c884b062456ef929e08bea9c1d31c..53898ecb3ae03a07dd24cfd2c4e18950c32d99df 100644 (file)
@@ -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
index 39261348f6c5159923ff8214671b70429162e72f..09544f391843753354eb82882f15d1f28bfd0dcc 100644 (file)
@@ -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
index e52b6156e071dd67c3351b520b40ace8a22b69dd..df8df610c18677abc2fb4ea8311ca587678e4fe2 100644 (file)
@@ -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
index 7189819b044567811b1e9f5fd634a42d0fc5bc05..6cc0f7dd4575e4119ee6a8ff51a1fd62c845ef93 100644 (file)
@@ -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
index 327c9575ad90c1b5338700d7941b94fbf937d66d..0646cf4eb7e6655c0bfc63b18135b5d586ab5552 100644 (file)
 #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
index 199180e30201e45eafd8733169d4bffe0832cd6c..704c0ccf8f9fbae0d8dbf84d2ad6a5c9ec856472 100644 (file)
@@ -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 @@ typedef mbchar_t mbf_char_t;
 
 #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 */
index 24504c3f616a7e9fe5fbcc10e69938adb4817eaf..9ef4707a77e60438644e37f868f6cc6402ac1ea1 100644 (file)
@@ -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
index c5f5fcee8ee1c1f321f2ac224632ccca6f34ee7e..ca130a4c330aa187501475677669e4fc12293c58 100644 (file)
 #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
index eb90990da1d694ed50a06155457874328343d8e9..7208f4459fe627898e0986c1934e92ca27e7e0d2 100644 (file)
@@ -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
index 1bd5c22775df366a7020c7e482bf29e44a350ec4..302e582405377a055febce8b934b39eac77311e3 100644 (file)
@@ -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
index 6f62cce00c2942a07b54e064f21c97fa81685ae8..c4fd375eb2b054093ec2857294fbe277a39389bc 100644 (file)
@@ -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
index 7fcfb0b3b64113081ea3ef9e5e58c5ce8cfa7e2f..bd8ccfa65476f4ab05f593755f3b1f399679e0fe 100644 (file)
@@ -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
index 61912bc9493918cfd07ece2d70d994d669bd2379..7dedbeec2f20c95ebc976b53b5a70a0dad280d33 100644 (file)
@@ -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
index a692f5a0604da7cf9b78efd0ef8239e4cb08365d..bd586e8b10a1b0334e2dba01778efda3cf4e7627 100644 (file)
@@ -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
index 7f54f1e940592ad3b7ab72a11d3d9801a1761d72..62a5d867478df2683671df8db01af1402e03b02b 100644 (file)
@@ -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 @@ matchpathcon_init_prefix (char const *path _GL_UNUSED_PARAMETER,
 #   define GNULIB_defined_security_types 1
 #  endif
 
+#ifndef _GL_INLINE_HEADER_BEGIN
+ #error "Please include config.h first."
+#endif
 _GL_INLINE_HEADER_BEGIN
 
 # endif
index ca9f979c41d6459a169aafea2b831fb666695c74..67d061d59901d3df4fc527504a58c23630c85c8b 100644 (file)
@@ -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
index 2d3b5cd6514b37d53f3d06743c2ce40b5ccf9043..d58eddde334e0056d8f78b2e512ff6e987cb9e10 100644 (file)
@@ -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
index 932fc222bae1ef1d3cf6d35672ee538c543a5261..8f64363ea42220b8dce3e43d6b575c2c5090627b 100644 (file)
@@ -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
index d665e6ccf9ae99539ca2ccf1a41144b91ed4d4a7..5990d070e05e3904ef22f7c3ef9fb786bb36a257 100644 (file)
@@ -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
index d8009ad3913596ceefdfb4bce4a8fd5034a2694f..af8441f52e57cb3dea9b57ffc7feaba7be81a924 100644 (file)
--- a/lib/u64.h
+++ b/lib/u64.h
@@ -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
index 31e20bcb1a9632852184d86daee0d074e689d437..2543a40005a52223d674aad8a709bcada6bc5809 100644 (file)
 # 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
index 82a72a7a451dca3808c388d720393a55a6cbc93c..f1633c966aa2e9c32ee74697a014b5ccc3641f52 100644 (file)
@@ -26,6 +26,9 @@ int lutimens (char const *, struct timespec const [2]);
 # 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
index 933d6221dbc8e6ed091e2be4508b2612f7238fe5..d11b833a2eabe93f65a2dab6ab8e80b27a62913e 100644 (file)
@@ -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
index da7c4b6bb3e1828aa8d750294a9281013a06b136..6c9b53bf6fabbdc3c96f0e44a24b0bb778574250 100644 (file)
@@ -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
index aabc5a5e4e2a1fa255660cbfc1a381eb9519fe83..4111e0c4d94860208a11cdc1888874e960acb5d1 100644 (file)
@@ -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
index c38e9dc3868ef89e925fe1e7babb59d57d8f8671..4eb55ba2f594b221a4bed9a7e7cf0eecfab26a92 100644 (file)
@@ -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