summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-03-02 01:18:28 +0000
committerBruno Haible <bruno@clisp.org>2007-03-02 01:18:28 +0000
commit2d89ffe89df190659e2a0a396d06ed722ddc9b4c (patch)
tree433f1089f24e48051c6090ac9fa3870628a73943 /doc
parentc7857d5835743de62405964797a38f6e1adfb3b1 (diff)
downloadgnulib-2d89ffe89df190659e2a0a396d06ed722ddc9b4c.tar.gz
Gnulib doesn't impose ordering constraints between include files, except
for <config.h>.
Diffstat (limited to 'doc')
-rw-r--r--doc/gnulib-tool.texi8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/gnulib-tool.texi b/doc/gnulib-tool.texi
index cb37964a54..a7f6ca7feb 100644
--- a/doc/gnulib-tool.texi
+++ b/doc/gnulib-tool.texi
@@ -235,10 +235,10 @@ file. That way, for example, if @file{config.h} defines
@samp{restrict} to be the empty string on a pre-C99 host, or a macro
like @samp{_FILE_OFFSET_BITS} that affects the layout of data
structures, the definition is consistent for all include files.
-
-You should include Gnulib-provided headers before system headers,
-so that Gnulib-provided headers can adjust how a system header
-behaves.
+Another reason why @file{config.h} must be included before any other
+include file is that it may define macros like @samp{_GNU_SOURCE}
+or @samp{_FILE_OFFSET_BITS} which, on glibc systems, have an effect only
+if defined before the first system header file is included.
A final word of warning: Gnulib currently assumes it will be
responsible for @emph{all} functions that end up in the Autoconf