Skip to content

Commit f129bfb

Browse files
author
Pietro Monteiro
committed
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 <[email protected]>
1 parent e2ea8d4 commit f129bfb

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

libga68/ga68-alloc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
COPYING3 and COPYING.RUNTIME respectively. If not, see
2121
<http://www.gnu.org/licenses/>. */
2222

23+
#include "ga68.h"
24+
2325
#include <stdlib.h>
2426

25-
#include "ga68.h"
2627

2728
/* Heap allocation routines. */
2829

libga68/ga68-error.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@
2020
COPYING3 and COPYING.RUNTIME respectively. If not, see
2121
<http://www.gnu.org/licenses/>. */
2222

23+
#include "ga68.h"
24+
2325
#include <stdio.h>
2426
#include <stdlib.h> /* For abort. */
2527

26-
#include "ga68.h"
2728

2829
/* Run-time error handling.
2930

libga68/ga68-standenv.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
COPYING3 and COPYING.RUNTIME respectively. If not, see
2121
<http://www.gnu.org/licenses/>. */
2222

23+
#include "ga68.h"
24+
2325
#include <stdlib.h> /* For rand. */
2426

25-
#include "ga68.h"
2627

2728
/* Implementation of the standard prelude `random' function. */
2829

libga68/ga68-unistr.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@
2323
/* The code in this file has been copied from the unistr gnulib module, written
2424
by Bruno Haible, and adapted to support strides. */
2525

26+
#include "ga68.h"
27+
2628
#include <stddef.h> /* For ptrdiff_t */
2729
#include <stdlib.h>
2830
#include <stdint.h>
2931
#include <errno.h>
3032
#include <string.h>
3133

32-
#include "ga68.h"
3334

3435
/* CMP (n1, n2) performs a three-valued comparison on n1 vs. n2, where
3536
n1 and n2 are expressions without side effects, that evaluate to real

0 commit comments

Comments
 (0)