From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97709 invoked by alias); 3 Oct 2019 16:32:52 -0000 Mailing-List: contact gdb-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: , Sender: gdb-cvs-owner@sourceware.org List-Subscribe: Sender: gdb-cvs-owner@sourceware.org Received: (qmail 97607 invoked by uid 10018); 3 Oct 2019 16:32:52 -0000 Date: Thu, 03 Oct 2019 16:32:00 -0000 Message-ID: <20191003163252.97603.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Jose E.Marchesi To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb] libctf: get rid of a disruptive public include of X-Act-Checkin: binutils-gdb X-Git-Author: Nick Alcock X-Git-Refname: refs/heads/master X-Git-Oldrev: 5ae6af75b50bb4137d286a14e2fd1e74cfa089f4 X-Git-Newrev: 7e97445a5a4797ba580a58c99d9e16836aa41188 X-SW-Source: 2019-10/txt/msg00051.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7e97445a5a4797ba580a58c99d9e16836aa41188 commit 7e97445a5a4797ba580a58c99d9e16836aa41188 Author: Nick Alcock Date: Sat Jul 13 21:45:55 2019 +0100 libctf: get rid of a disruptive public include of This hoary old header defines things like MAX that users of libctf might perfectly reasonably define themselves. The CTF headers do not need it: move it into libctf/ctf-impl.h instead. include/ * ctf-api.h (includes): No longer include . libctf/ * ctf-impl.h (includes): Include here. Diff: --- include/ChangeLog | 4 ++++ include/ctf-api.h | 1 - libctf/ChangeLog | 4 ++++ libctf/ctf-impl.h | 1 + 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/ChangeLog b/include/ChangeLog index ce7c173..b53956f 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2019-07-13 Nick Alcock + + * ctf-api.h (includes): No longer include . + 2019-07-30 Nick Alcock * ctf-api.h (ctf_link_add_cu_mapping): New. diff --git a/include/ctf-api.h b/include/ctf-api.h index 4ac5fea..f50bb0a 100644 --- a/include/ctf-api.h +++ b/include/ctf-api.h @@ -24,7 +24,6 @@ #ifndef _CTF_API_H #define _CTF_API_H -#include #include #include #include diff --git a/libctf/ChangeLog b/libctf/ChangeLog index 83b3167..9637cf3 100644 --- a/libctf/ChangeLog +++ b/libctf/ChangeLog @@ -1,3 +1,7 @@ +2019-07-13 Nick Alcock + + * ctf-impl.h (includes): Include here. + 2019-07-30 Nick Alcock * ctf-open.c (flip_lbls): Eschew for-loop initial declarations. diff --git a/libctf/ctf-impl.h b/libctf/ctf-impl.h index 554b187..211099e 100644 --- a/libctf/ctf-impl.h +++ b/libctf/ctf-impl.h @@ -22,6 +22,7 @@ #include "config.h" #include +#include #include "ctf-decls.h" #include #include