From: Pietro Monteiro Date: Sat, 27 Dec 2025 19:45:07 +0000 (-0500) Subject: libga68: Include ga68.h before system headers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f129bfb6a81abd8dcf8ccc6e4b23813766d9fdb2;p=thirdparty%2Fgcc.git libga68: Include ga68.h before system headers Make sure all declarations added by autoconf are seen by system headers. libga68/ChangeLog: * ga68-alloc.c: Include ga68.h before all includes. * ga68-error.c: Likewise. * ga68-standenv.c: Likewise. * ga68-unistr.c: Likewise. Signed-off-by: Pietro Monteiro --- diff --git a/libga68/ga68-alloc.c b/libga68/ga68-alloc.c index 1cf922eb211..5e9f7c2b920 100644 --- a/libga68/ga68-alloc.c +++ b/libga68/ga68-alloc.c @@ -20,9 +20,10 @@ COPYING3 and COPYING.RUNTIME respectively. If not, see . */ +#include "ga68.h" + #include -#include "ga68.h" /* Heap allocation routines. */ diff --git a/libga68/ga68-error.c b/libga68/ga68-error.c index 28f71659645..c826317bade 100644 --- a/libga68/ga68-error.c +++ b/libga68/ga68-error.c @@ -20,10 +20,11 @@ COPYING3 and COPYING.RUNTIME respectively. If not, see . */ +#include "ga68.h" + #include #include /* For abort. */ -#include "ga68.h" /* Run-time error handling. diff --git a/libga68/ga68-standenv.c b/libga68/ga68-standenv.c index 2c1b7979af1..4a5dc25200a 100644 --- a/libga68/ga68-standenv.c +++ b/libga68/ga68-standenv.c @@ -20,9 +20,10 @@ COPYING3 and COPYING.RUNTIME respectively. If not, see . */ +#include "ga68.h" + #include /* For rand. */ -#include "ga68.h" /* Implementation of the standard prelude `random' function. */ diff --git a/libga68/ga68-unistr.c b/libga68/ga68-unistr.c index 1b6f46afee3..85ddada4f2c 100644 --- a/libga68/ga68-unistr.c +++ b/libga68/ga68-unistr.c @@ -23,13 +23,14 @@ /* The code in this file has been copied from the unistr gnulib module, written by Bruno Haible, and adapted to support strides. */ +#include "ga68.h" + #include /* For ptrdiff_t */ #include #include #include #include -#include "ga68.h" /* CMP (n1, n2) performs a three-valued comparison on n1 vs. n2, where n1 and n2 are expressions without side effects, that evaluate to real