aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2023-02-23 07:13:40 -0700
committerTom Tromey <tromey@adacore.com>2023-03-14 08:16:39 -0600
commitc8a67010d133374dfb3b4ed88da7953702a2091d (patch)
tree6c45609b89ace1acc9d25757bc6bade2f5da5077
parent85c72d708e60b0da9dff4db4209e257245487d1d (diff)
downloadgdb-c8a67010d133374dfb3b4ed88da7953702a2091d.zip
gdb-c8a67010d133374dfb3b4ed88da7953702a2091d.tar.gz
gdb-c8a67010d133374dfb3b4ed88da7953702a2091d.tar.bz2
Clean up gmp-utils.h includes
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.
-rw-r--r--gdb/gmp-utils.c1
-rw-r--r--gdb/gmp-utils.h2
-rw-r--r--gdb/unittests/gmp-utils-selftests.c1
3 files changed, 2 insertions, 2 deletions
diff --git a/gdb/gmp-utils.c b/gdb/gmp-utils.c
index b9c9b49..8150fa5 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 <http://www.gnu.org/licenses/>. */
+#include "defs.h"
#include "gmp-utils.h"
/* See gmp-utils.h. */
diff --git a/gdb/gmp-utils.h b/gdb/gmp-utils.h
index 9aa501a..3f30b57 100644
--- a/gdb/gmp-utils.h
+++ b/gdb/gmp-utils.h
@@ -20,8 +20,6 @@
#ifndef GMP_UTILS_H
#define GMP_UTILS_H
-#include "defs.h"
-
/* Include <stdio.h> and <stdarg.h> ahead of <gmp.h>, so as to get
access to GMP's various formatting functions. */
#include <stdio.h>
diff --git a/gdb/unittests/gmp-utils-selftests.c b/gdb/unittests/gmp-utils-selftests.c
index cc525a1..e2ccd2c 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 <http://www.gnu.org/licenses/>. */
+#include "defs.h"
#include "gmp-utils.h"
#include "gdbsupport/selftest.h"