From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 3DC0E3858D37; Tue, 14 Mar 2023 14:19:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3DC0E3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1678803571; bh=P4frbKFi4FCrPyM7X98L6fL80CPv9XWlKORNmFbQZCQ=; h=From:To:Subject:Date:From; b=nrbbIqBmubsGlKxNGJxLbqGppXs9BVZh8WrNA2uvL+RJXhIoZkLhbgQJ3lJQHI0GS CrlPYnv5HqyHfxthAm9/ANhRPBDnqlaXWdbAPop9XvvnA5aTIKiO6WX7TlPzmIGrpX IvM4APMGyKmnfkl2EUHfJmqXsrL30w54CnB7C/QY= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Clean up gmp-utils.h includes X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 85c72d708e60b0da9dff4db4209e257245487d1d X-Git-Newrev: c8a67010d133374dfb3b4ed88da7953702a2091d Message-Id: <20230314141931.3DC0E3858D37@sourceware.org> Date: Tue, 14 Mar 2023 14:19:31 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Dc8a67010d133= 374dfb3b4ed88da7953702a2091d commit c8a67010d133374dfb3b4ed88da7953702a2091d Author: Tom Tromey Date: Thu Feb 23 07:13:40 2023 -0700 Clean up gmp-utils.h includes =20 gmp-utils.h includes "defs.h", but normally the rule in gdb is that the .c files include this first. This patch changes this code to match the rest of gdb. Diff: --- gdb/gmp-utils.c | 1 + gdb/gmp-utils.h | 2 -- gdb/unittests/gmp-utils-selftests.c | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/gmp-utils.c b/gdb/gmp-utils.c index b9c9b495398..8150fa5dcdf 100644 --- a/gdb/gmp-utils.c +++ b/gdb/gmp-utils.c @@ -15,6 +15,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . = */ =20 +#include "defs.h" #include "gmp-utils.h" =20 /* See gmp-utils.h. */ diff --git a/gdb/gmp-utils.h b/gdb/gmp-utils.h index 9aa501ac8c6..3f30b575f72 100644 --- a/gdb/gmp-utils.h +++ b/gdb/gmp-utils.h @@ -20,8 +20,6 @@ #ifndef GMP_UTILS_H #define GMP_UTILS_H =20 -#include "defs.h" - /* Include and ahead of , so as to get access to GMP's various formatting functions. */ #include diff --git a/gdb/unittests/gmp-utils-selftests.c b/gdb/unittests/gmp-utils-= selftests.c index cc525a13fc0..e2ccd2ca094 100644 --- a/gdb/unittests/gmp-utils-selftests.c +++ b/gdb/unittests/gmp-utils-selftests.c @@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . = */ =20 +#include "defs.h" #include "gmp-utils.h" #include "gdbsupport/selftest.h"