From c23bc8a203c7fac0d4b62b8c69467d7401a50f07 Mon Sep 17 00:00:00 2001 From: Bob Dubner <rdubner@symas.com> Date: Tue, 21 Jan 2025 00:31:25 -0500 Subject: [PATCH] Remove local #include from scan_ante.h --- gcc/cobol/parse.y | 4 ++++ gcc/cobol/parse_ante.h | 6 ------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/gcc/cobol/parse.y b/gcc/cobol/parse.y index e6ba144a012f..4127aaefb6d5 100644 --- a/gcc/cobol/parse.y +++ b/gcc/cobol/parse.y @@ -282,6 +282,10 @@ #include <fstream> // Before cobol-system because it uses poisoned functions #include "cobol-system.h" #include "cdfval.h" +#define USE_LOCATION_DUMP +#include "genapi.h" +#include "io.h" +#include "ec.h" #include "parse_ante.h" %} diff --git a/gcc/cobol/parse_ante.h b/gcc/cobol/parse_ante.h index 9dc6fb01cf55..fec97c23464f 100644 --- a/gcc/cobol/parse_ante.h +++ b/gcc/cobol/parse_ante.h @@ -28,12 +28,6 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#define USE_LOCATION_DUMP - -#include "genapi.h" -#include "io.h" -#include "ec.h" - #include <assert.h> #include <string.h> #include <stdio.h> -- GitLab