]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libga68: Include ga68.h before system headers
authorPietro Monteiro <pietro@sociotechnical.xyz>
Sat, 27 Dec 2025 19:45:07 +0000 (14:45 -0500)
committerPietro Monteiro <pietro@sociotechnical.xyz>
Sat, 27 Dec 2025 19:45:07 +0000 (14:45 -0500)
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 <pietro@sociotechnical.xyz>
libga68/ga68-alloc.c
libga68/ga68-error.c
libga68/ga68-standenv.c
libga68/ga68-unistr.c

index 1cf922eb2115b2c7689494ec2cdea60b2dd4e0c9..5e9f7c2b9203b6611b18cf9ca1da53686c98b15c 100644 (file)
    COPYING3 and COPYING.RUNTIME respectively.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include "ga68.h"
+
 #include <stdlib.h>
 
-#include "ga68.h"
 
 /* Heap allocation routines.  */
 
index 28f71659645ff229dda366149f66453f5520ad4c..c826317badecbfa3c19eba7e0a054b9f37be302f 100644 (file)
    COPYING3 and COPYING.RUNTIME respectively.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include "ga68.h"
+
 #include <stdio.h>
 #include <stdlib.h> /* For abort.  */
 
-#include "ga68.h"
 
 /* Run-time error handling.
 
index 2c1b7979af101257c98763e3e68b96b62c03b693..4a5dc25200aabd1bfe76beea4f99748df9eb4605 100644 (file)
    COPYING3 and COPYING.RUNTIME respectively.  If not, see
    <http://www.gnu.org/licenses/>.  */
 
+#include "ga68.h"
+
 #include <stdlib.h> /* For rand.  */
 
-#include "ga68.h"
 
 /* Implementation of the standard prelude `random' function.  */
 
index 1b6f46afee39785b8136ee51fbe6a570154d5acc..85ddada4f2c4e7456f6ee45340d2ebd9c845c4c3 100644 (file)
 /* 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 <stddef.h> /* For ptrdiff_t */
 #include <stdlib.h>
 #include <stdint.h>
 #include <errno.h>
 #include <string.h>
 
-#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