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 <pietro@sociotechnical.xyz>
This commit is contained in:
Pietro Monteiro
2025-12-27 14:45:07 -05:00
parent e2ea8d40f1
commit f129bfb6a8
4 changed files with 8 additions and 4 deletions

View File

@@ -20,9 +20,10 @@
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. */

View File

@@ -20,10 +20,11 @@
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.

View File

@@ -20,9 +20,10 @@
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. */

View File

@@ -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 <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