]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
extern-inline: #define AAA_INLINE pre-<config.h>
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 12 Dec 2025 23:21:47 +0000 (15:21 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 12 Dec 2025 23:33:21 +0000 (15:33 -0800)
In *.c files using the "#define AAA_INLINE _GL_EXTERN_INLINE" idiom,
put the idiom before including <config.h>.  This is suggested in
the Gnulib documentation, and avoids problems when an application
like Emacs rashly defines a config.h file that includes a *.h file
that uses the documented "#ifndef AAA_INLINE / # define AAA_INLINE
_GL_INLINE / #endif" idiom.

80 files changed:
ChangeLog
lib/acl-internal.c
lib/alignalloc.c
lib/arpa_inet.c
lib/base32.c
lib/base64.c
lib/binary-io.c
lib/bitrotate.c
lib/byteswap.c
lib/c-ctype.c
lib/chmodat.c
lib/chownat.c
lib/count-leading-zeros.c
lib/count-one-bits.c
lib/count-trailing-zeros.c
lib/eealloc.c
lib/endian.c
lib/execinfo.c
lib/gethrxtime.c
lib/getpagesize.c
lib/gl_list.c
lib/gl_map.c
lib/gl_omap.c
lib/gl_oset.c
lib/gl_set.c
lib/gl_xlist.c
lib/gl_xmap.c
lib/gl_xomap.c
lib/gl_xoset.c
lib/gl_xset.c
lib/gl_xsublist.c
lib/glthread/cond.c
lib/hamt.c
lib/ialloc.c
lib/issymlink.c
lib/issymlinkat.c
lib/mbchar.c
lib/mbfile.c
lib/mbiter.c
lib/mbiterf.c
lib/mbuiter.c
lib/mbuiterf.c
lib/mcel.c
lib/pipe-filter-aux.c
lib/priv-set.c
lib/realloc.c
lib/safe-alloc.c
lib/same-inode.c
lib/savewd.c
lib/se-context.c
lib/se-label.c
lib/se-selinux.c
lib/sig-handler.c
lib/stat-time.c
lib/statat.c
lib/stdc_bit_ceil.c
lib/stdc_bit_floor.c
lib/stdc_bit_width.c
lib/stdc_count_ones.c
lib/stdc_count_zeros.c
lib/stdc_first_leading_one.c
lib/stdc_first_leading_zero.c
lib/stdc_first_trailing_one.c
lib/stdc_first_trailing_zero.c
lib/stdc_has_single_bit.c
lib/stdc_leading_ones.c
lib/stdc_leading_zeros.c
lib/stdc_trailing_ones.c
lib/stdc_trailing_zeros.c
lib/string-desc-quotearg.c
lib/string-desc.c
lib/string.c
lib/timespec.c
lib/u64.c
lib/utimens.c
lib/xbinary-io.c
lib/xmalloc.c
lib/xsize.c
lib/xstring-desc.c
lib/xtime.c

index fa91828f1b7cab0fcc08bd1ba10303d1720a3991..e5e67e7a8c2fdb4fed65eee56122ace55ae2e471 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2025-12-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       extern-inline: #define AAA_INLINE pre-<config.h>
+       In *.c files using the "#define AAA_INLINE _GL_EXTERN_INLINE" idiom,
+       put the idiom before including <config.h>.  This is suggested in
+       the Gnulib documentation, and avoids problems when an application
+       like Emacs rashly defines a config.h file that includes a *.h file
+       that uses the documented "#ifndef AAA_INLINE / # define AAA_INLINE
+       _GL_INLINE / #endif" idiom.
+
 2025-12-11  Bruno Haible  <bruno@clisp.org>
 
        relocatable-prog{,-wrapper}: Fix autoconf error (regr. 2025-12-09).
index 8c173bf4f1af964db453e01bb4ebb8ebf60701b4..413be44e6e15db4126a9088762061dfc8bf6701f 100644 (file)
 
    Written by Paul Eggert, Andreas Grünbacher, and Bruno Haible.  */
 
+#define ACL_INTERNAL_INLINE _GL_EXTERN_INLINE
 #include <config.h>
 
 /* Specification.  */
-#define ACL_INTERNAL_INLINE _GL_EXTERN_INLINE
 #include "acl-internal.h"
 
 #include "acl.h"
index 93c369bced6ee634c9681f7fd30e56d32c2a8092..2ae572588a226a478353f894ff6416dc2788623d 100644 (file)
@@ -17,9 +17,8 @@
 
 /* Written by Paul Eggert.  */
 
-#include <config.h>
-
 #define ALIGNALLOC_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "alignalloc.h"
 
 #include <limits.h>
index fae7c24147e2dda77bf389fdd3bc8ab70730f302..4ea2dffa0506e24b5b0b89f4c156bc66be56d4bf 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_ARPA_INET_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <arpa/inet.h>
index d5a49d634d62d5992c84723e4733965f4426f455..c41b2955d5163094409e2faaa5ae1bf2c1806bf0 100644 (file)
  *
  */
 
+#define BASE32_INLINE _GL_EXTERN_INLINE
 #include <config.h>
 
 /* Get prototype. */
-#define BASE32_INLINE _GL_EXTERN_INLINE
 #include "base32.h"
 
 /* Get imalloc. */
index ac3ad4f3bc86234bff693ca2a108a38f95007119..480a411d1b6b1a4d2aa307442a4827610262093e 100644 (file)
  *
  */
 
+#define BASE64_INLINE _GL_EXTERN_INLINE
 #include <config.h>
 
 /* Get prototype. */
-#define BASE64_INLINE _GL_EXTERN_INLINE
 #include "base64.h"
 
 /* Get imalloc. */
index d2937b8f63bdc2bd47e657fef138c47a635f05ec..bc096a861d6fc89570ea781699a978170c800934 100644 (file)
@@ -14,9 +14,8 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define BINARY_IO_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "binary-io.h"
 
 #if defined __DJGPP__ || defined __EMX__
index 6f6d306e9f82176bea83bfe618e276fd81e44483..ebf38c8be8f956b500de3da8d3081012c8111d69 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define BITROTATE_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "bitrotate.h"
index 97f7fc9ebfda2d2c13a17a13d8eff09800294d43..0b5b88844206e5a532a48c6929d369833dd5ab34 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_BYTESWAP_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <byteswap.h>
index ecf2c0832095722167856d50a3046488d9bce1bf..960155f3f3e371d985e440933a9803a063f33b9b 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define C_CTYPE_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "c-ctype.h"
index ed5f2e8c127b0c7ebf7fb2e3af8827904e2e70d9..f04fd5f773aaf9095a2840b77da94b275b47e454 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define CHMODAT_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "openat.h"
index 116f42f0b0146cad6c6b1988ea8bc8d2d2160878..6cab1eb939ef3e40eb87d28907efb7d878551e2b 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define CHOWNAT_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "openat.h"
index 87e83b3fad3a8b6d767f73b2273c44010315e3c2..3b450fa4797515dd11818fec62308bc0195f809d 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define COUNT_LEADING_ZEROS_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "count-leading-zeros.h"
index e2d732851bce1f95c86a8be14761c236fe699fe8..60d72136d11fabce4961dfacc7433e5325b2106a 100644 (file)
@@ -15,9 +15,8 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define COUNT_ONE_BITS_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "count-one-bits.h"
 
 #if 1500 <= _MSC_VER && (defined _M_IX86 || defined _M_X64)
index 122feba61712eb22ca92dce0cdb2c43820b06fd6..d561c654d04bad0e0f051c8aa2d0e519d335153c 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define COUNT_TRAILING_ZEROS_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "count-trailing-zeros.h"
index 97ff2a233a412b19078bf739188361226d1ae62d..daea89815fc00b1508f1ec3852bdc77141259219 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define EEALLOC_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "eealloc.h"
index 702f7e0d697b0d0192bc3d3941534674604c8f8c..bfa551d6da4ecc83ee907702551dface673fc35e 100644 (file)
@@ -19,5 +19,4 @@
 
 #define _GL_ENDIAN_INLINE _GL_EXTERN_INLINE
 #include <config.h>
-
 #include <endian.h>
index a9fe54075f09cb1a3be0f7dc169be31de770b145..745fbbb052fb438e6d533457bb63e2d84194661f 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_EXECINFO_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "execinfo.h"
index e1c25d6e5a36a568c93faa9cb7ff90bffbbdc0a6..402014c3f31ae44b919e75923c46d7b6ed892fff 100644 (file)
@@ -17,9 +17,8 @@
 
 /* Written by Paul Eggert.  */
 
-#include <config.h>
-
 #define GETHRXTIME_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "gethrxtime.h"
 
 #if ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME)
index c4434ef6440a7eebe870df5ac79ee3aed229a688..c4a649bd6d0ae0f0e4c56a73dffdac1bb091b061 100644 (file)
 
 /* Written by Bruno Haible and Martin Lambers.  */
 
+#define _GL_GETPAGESIZE_INLINE _GL_EXTERN_INLINE
 #include <config.h>
 
 /* Specification. */
-#define _GL_GETPAGESIZE_INLINE _GL_EXTERN_INLINE
 #include <unistd.h>
 
 /* This implementation is only for native Windows systems.  */
index edf80f9a6741e39917cb18a7ecc3ef45dede2192..bd947053846019cffc78b278c6b4cad50ef642f1 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_LIST_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "gl_list.h"
index b317524b39df5eb90e263fe7771bf4eca765b511..548335c68ca7dffcb5afb9d89ce2a54443db296c 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_MAP_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "gl_map.h"
index 9cdeccec4e8c750331c517b4abddcdac667cd2e5..6859d2f707dce26b1f6b0699f25524080f767a9e 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_OMAP_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "gl_omap.h"
index 6335f5908527183e26981918929692fb15296006..93bb4930f077836aa56e84230015771dfddcff67 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_OSET_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "gl_oset.h"
index 4c7897d1517d00220de15e37f5318a8a5822de18..e901f5e14722513c8516692a68a7f99747cd0020 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_SET_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "gl_set.h"
index cd34366e356d14ad1f52d88b281b9962a239625e..c436505692d7170603ebb9c06e56374c15b1f3ed 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_XLIST_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "gl_xlist.h"
index 394a8b60789dbebf14590659733ff0fe9be49797..974b84f68976075ad035d3ff800e931d765aaa65 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_XMAP_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "gl_xmap.h"
index 10093d15ce3d9ab0947409e8a914e1273fc03b48..bec6d46eac95eb65412fc2398684eef6bc96d7ae 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_XOMAP_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "gl_xomap.h"
index 96fa047e1dddc2aea761884a7b0dbb9bf53cbbf6..ee7feed2ce8e2907fe19fa6bec2f90e981231f15 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_XOSET_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "gl_xoset.h"
index 000ee9b37e5403448c370e8a885dc0629b889eab..34ac2a2909c55c8c1309898dd20f5d79c53001d7 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_XSET_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "gl_xset.h"
index bbfee3b5db15f817ea311e9618f3e56566c95faa..d9af6e0b4b6f731796ad3c3371d019bd1f9e1e8a 100644 (file)
@@ -16,7 +16,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_XSUBLIST_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "gl_xsublist.h"
index 9d0715c2443bea6afaa31f29ecb4b9a17dffd758..6d39fb032333b3c73f4f6ef597005de2acf86e4b 100644 (file)
@@ -17,9 +17,8 @@
 /* Written by Yoann Vandoorselaere <yoann@prelude-ids.org>, 2008,
    and Bruno Haible <bruno@clisp.org>, 2008.  */
 
-#include <config.h>
-
 #define _GLTHREAD_COND_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "glthread/cond.h"
 
 /* ========================================================================= */
index 3049333caef648ee6c3ae27ee85c54569f6226b1..eab4600e5fc12a27ee06ed3e512c7592fb4c0cd6 100644 (file)
@@ -16,8 +16,8 @@
 
 /* Written by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de>, 2021.  */
 
-#include <config.h>
 #define _GL_HAMT_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "hamt.h"
 
 #include <flexmember.h>
index 881c8f0484f84272aaca7a75c8b16450b37a06e8..0db987288f2289a3f272a225d0b1854782185023 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define IALLOC_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "ialloc.h"
index dbf56c037c4d04ef382d1696490e944e42f9bd1a..85bd071540630d99129a5d9df217f9fb4d1cb18d 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_ISSYMLINK_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "issymlink.h"
index ebd937e91bc524ca888e702a0d9f8a0f98bc9f8b..b98f38e8412ac9e2c2c0093d4fc3f12513440072 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_ISSYMLINKAT_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "issymlinkat.h"
index 713c2f749ed9cff0bed3f0e8ed0c381a18e02189..5aef58232cb1b04bdea7e4cb3b808f2d4a33e5d7 100644 (file)
@@ -14,9 +14,8 @@
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
 
-#include <config.h>
-
 #define MBCHAR_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 
 #include <limits.h>
 
index f4e3e775e7dc90c9d09eb1216a158d61ead1437e..72bc5888038219695dedb4ffc660d1b6ecd8cbea 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define MBFILE_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "mbfile.h"
index 478f6bffcc023f0b308337a14dcab302d6884117..51dc6789368db25c80fc9fc63910e634f42be2a4 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define MBITER_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "mbiter.h"
index ad354c55c73f9fd6aa9c4b3c61241cdb814b41d7..2994e3287b29100f2e6ebf1b870e048ac58bad70 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define MBITERF_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "mbiterf.h"
index 860c6a82d896627370a2668b211973a595c7f4d0..6fa68a412305557b945341e3c21655bd5252b80b 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define MBUITER_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "mbuiter.h"
index 63113c7b3b3611d79301fb27e2c04fd0e4f70459..e27c85ad578cd7ea26b26ee7e0c2b2aa535f1ac3 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define MBUITERF_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "mbuiterf.h"
index 8e80b322bf619887376e3806a4316ca009bb8953..ded8987faa104fe4dd30037b21fb3c30a28e5ae7 100644 (file)
@@ -14,6 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
 #define MCEL_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "mcel.h"
index 596511ea98df21c9a4dedfac8b619fd3ca44c6e7..161439c27dfe804019d325e5bf5b338fe6ba4db7 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define PIPE_FILTER_AUX_INLINE _GL_EXTERN_INLINE
-
+#include <config.h>
 #include "pipe-filter.h"
 
 #include <errno.h>
index f3247c5a3d00ba02630c1c1ee4352fbefa2e9ba9..1c5c44730abb9b1fbd07ebbb24916970fa0725b0 100644 (file)
 
    Written by David Bartley.  */
 
-#include <config.h>
-
 #define PRIV_SET_INLINE _GL_EXTERN_INLINE
-
+#include <config.h>
 #include "priv-set.h"
 
 #if HAVE_GETPPRIV && HAVE_PRIV_H
index cf0bf6e9f70ab625fab61c5a006b9e06fd435cf8..b0dd28b5da63137d3bad7020cf1d4a575b01d1af 100644 (file)
@@ -20,9 +20,9 @@
 
 /* Ensure that we call the system's realloc() below.  */
 #define _GL_USE_STDLIB_ALLOC 1
-#include <config.h>
 
 #define _GL_REALLOC_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdlib.h>
 
 #include <errno.h>
index a487d826679a2ea109758ef43e03519f9ac2d4dd..703ebd0239ae01ab52c0f30e959cf893c4aa15dd 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define SAFE_ALLOC_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "safe-alloc.h"
index 49a49e08eab6dea61ebab52be8c79a785f695d7d..b60b7b5688f6495ecafc8f37c4543bb29dde818d 100644 (file)
@@ -15,6 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
 #define SAME_INODE_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "same-inode.h"
index 17c73c7df7aa85584699e08db8289617d8c3104a..0ca222517d3bf93e7d0d1a7bfa93cde73fe6f6db 100644 (file)
 
 /* Written by Paul Eggert.  */
 
-#include <config.h>
-
 #define SAVEWD_INLINE _GL_EXTERN_INLINE
-
+#include <config.h>
 #include "savewd.h"
 
 #include <errno.h>
index 38e67c37a03203a63eb3a5bacda1f07421c34605..f777e820924aada89fd24e57b43b71f1fd71ae48 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define SE_CONTEXT_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <selinux/context.h>
index e09b026ef157ab8fd527599d2e619d9a3bfe9a37..93b253ae14ec89d68cd535585d89f4a235bab453 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define SE_LABEL_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <selinux/label.h>
index a4a3f4d8a8f95e05b5870a2d3fa27ee66dcde98e..1b7ad1291ab7a7afc9e10514d3b79a634b4c0466 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define SE_SELINUX_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <selinux/selinux.h>
index 9ffa5c67a376e651b19880e95b7d0ed5c29a9644..45eff61bc65aa4f7c0f0912eac166910ae5654e5 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define SIG_HANDLER_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "sig-handler.h"
index fa93e16cd959a19d6cfb4a9f48f4faf9fbaf8606..a8ce2fcad9675033e89312bd29cdc0ed11a4100e 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STAT_TIME_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "stat-time.h"
index b1cfe7cbd995702f965c778f463d97822c02fc95..497bda6a1ab5c5a19cea0426a75abfb712cb6185 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define STATAT_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "openat.h"
index 0d4132fe8f3b0ab1e34e5bfefc0d2833de37e4c6..e4c9064928a39618a7299689e6db18725693003b 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_BIT_CEIL_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index 83c189a20414cfe529524664581d5fc5e70376d9..72817e567ff21007ee1ec0523d62fc8d7a509e6b 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_BIT_FLOOR_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index 27fde723f3d7d4cbe24ac0faa18d9760a413c4a2..0fabf1ba9a395f9a32e426056aeb177a9448065d 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_BIT_WIDTH_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index 76d5dd46454408f108de78864ee10347671785ee..063619ce770a17e38d29f1bd2047f3f83b599467 100644 (file)
@@ -14,9 +14,8 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_COUNT_ONES_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
 
 #if 1500 <= _MSC_VER && (defined _M_IX86 || defined _M_X64)
index 792fcc96713770479a62374bc4558a85d2775e31..2cf10b52de06a95b924d26b11bbcc2f66786cb1c 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_COUNT_ZEROS_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index c9f2b473a44cb42a801ff1eb7e7f466f2035e648..9b30b8773af51a4286edf7c80858b81363e9228a 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_FIRST_LEADING_ONE_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index ca07a9a7f7da96ad75c3d997b03e15db21cd364e..935b1c8fe65635d8b6ab0334257ded01b78ebc2e 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_FIRST_LEADING_ZERO_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index 59ac131e7dbc078e0dd679e3cb3e8456fc024981..055d95fe441c3434a5cb52f2a192c14aa622a62f 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_FIRST_TRAILING_ONE_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index 95d9490eb557e70776d677b1b054ab0f900c3b7d..facdd96d70f7f40980c661bb12ae96ad272b9a8c 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_FIRST_TRAILING_ZERO_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index 6bd2558002a37628867170e534a1286d2bf69273..8d46953fee15215ec3a2995aab1df033816542a0 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_HAS_SINGLE_BIT_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index ab247213e9bee44c01b8e121c1013106bb3a4e8f..aa20ee8b624fd9d14b52ccaf27efaa8f8d8d1705 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_LEADING_ONES_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index 2597c43fc70916da8b8e32f7ffffe096ccee8e91..3d1e6f6cf1487870335a464693ad7edd4fd98fff 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_LEADING_ZEROS_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index 250bfdde3a9c0fb0ef4b4b0397bdcb27576414ad..3429882e48498eae44354eed716a17c8fccf2367 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_TRAILING_ONES_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index 5d5d296c40efcaa677a91a7a74471e2a379f291e..12898f8ef2b781be0836f649414dc11d9130ea43 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STDC_TRAILING_ZEROS_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <stdbit.h>
index d65046f6e2c5d582af8c515f331ea46a57acc173..44247691a683b7ecd0c9b2b6157fac0e35618111 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_STRING_DESC_QUOTEARG_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "string-desc-quotearg.h"
index 5dabf67f0d66112f805a7492700de70f4b297801..27947ea4ddecd5c6e8a5d17310a946a7ee2c62ce 100644 (file)
@@ -16,9 +16,8 @@
 
 /* Written by Bruno Haible <bruno@clisp.org>, 2023.  */
 
-#include <config.h>
-
 #define GL_STRING_DESC_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 
 /* Specification and inline definitions.  */
 #include "string-desc.h"
index cce2eac9c065e7c373bb5a83b3e1f094b013554c..602bb7383e8a65e21eb10418abd530152887c05b 100644 (file)
@@ -14,7 +14,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_STRING_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include <string.h>
index 9ab11e5cc5d055dbeecd5c961f5aa85613cf7d39..261848d61160401b414880ad35418085cc9bad72 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_TIMESPEC_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "timespec.h"
index 9bf45b2912187573ee18dd19943a4914230cdbe7..8cfd7dfdc1a7d1eea3686792cd39e0f7da4a6505 100644 (file)
--- a/lib/u64.c
+++ b/lib/u64.c
@@ -15,8 +15,8 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define _GL_U64_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "u64.h"
+
 typedef int dummy;
index b2c88028c7f619b2df9e33b0587590b98e23d4c9..5ec77958bb912c9fcc6dd599187fb6a6af5ed5c0 100644 (file)
 
 /* derived from a function in touch.c */
 
+#define _GL_UTIMENS_INLINE _GL_EXTERN_INLINE
 #include <config.h>
 
 /* Specification.  */
-#define _GL_UTIMENS_INLINE _GL_EXTERN_INLINE
 #include "utimens.h"
 
 #include <errno.h>
index 90e49d99ed7c5fb60dbaf8bae639655f446d847d..b67d8e10c0209b3708836c1d6add7c96e7bd4545 100644 (file)
@@ -14,9 +14,8 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define XBINARY_IO_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "xbinary-io.h"
 
 #include <errno.h>
index 3d84797796d4c71ae3cb3feaf1bbc4ed114a20c2..136c5d7ac9439332bfa0558fd3f77a51b5390537 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define XALLOC_INLINE _GL_EXTERN_INLINE
-
+#include <config.h>
 #include "xalloc.h"
 
 #include "ialloc.h"
index cd75b606f20c7d187b1f41fafa131b243c46b9fa..e9ba2180f48bd4d1720a6094842ba6748baa9846 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU Lesser General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define XSIZE_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "xsize.h"
index c212c2e76a683e96eeea4d3e996f5ca24eb5592e..384186aceb32ad393c1961597a84f4357a79e8bc 100644 (file)
@@ -14,9 +14,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define GL_XSTRING_DESC_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "xstring-desc.h"
 
 #include "ialloc.h"
index a92d902701d044818d9bb48c11e6388291b159cd..c63bb5e9c7b587e0525ea464d501971e51bc0a18 100644 (file)
@@ -15,7 +15,6 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.  */
 
-#include <config.h>
-
 #define XTIME_INLINE _GL_EXTERN_INLINE
+#include <config.h>
 #include "xtime.h"