diff options
author | Tom Tromey <tom@tromey.com> | 2023-11-06 09:31:03 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-11-06 20:31:12 -0700 |
commit | cf0d07fd07117934750e4bb94cfc0349e251afae (patch) | |
tree | 65c293cdc7e8b9e1b4a8c9926bde010f34678403 /gdbsupport | |
parent | e0da5ef09c56eec9cffee9683a6258998802a428 (diff) | |
download | fsf-binutils-gdb-cf0d07fd07117934750e4bb94cfc0349e251afae.zip fsf-binutils-gdb-cf0d07fd07117934750e4bb94cfc0349e251afae.tar.gz fsf-binutils-gdb-cf0d07fd07117934750e4bb94cfc0349e251afae.tar.bz2 |
Remove EXTERN_C and related defines
common-defs.h has a few defines that I suspect were used during the
transition to C++. These aren't needed any more, so remove them.
Tested by rebuilding.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'gdbsupport')
-rw-r--r-- | gdbsupport/common-defs.h | 4 | ||||
-rw-r--r-- | gdbsupport/gdb_proc_service.h | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/gdbsupport/common-defs.h b/gdbsupport/common-defs.h index 5e8ebab..6f0d99f 100644 --- a/gdbsupport/common-defs.h +++ b/gdbsupport/common-defs.h @@ -214,10 +214,6 @@ #include "common-exceptions.h" #include "gdbsupport/poison.h" -#define EXTERN_C extern "C" -#define EXTERN_C_PUSH extern "C" { -#define EXTERN_C_POP } - /* Pull in gdb::unique_xmalloc_ptr. */ #include "gdbsupport/gdb_unique_ptr.h" diff --git a/gdbsupport/gdb_proc_service.h b/gdbsupport/gdb_proc_service.h index 19d40e0..c289e87 100644 --- a/gdbsupport/gdb_proc_service.h +++ b/gdbsupport/gdb_proc_service.h @@ -25,11 +25,11 @@ /* glibc's proc_service.h doesn't wrap itself with extern "C". Need to do it ourselves. */ -EXTERN_C_PUSH +extern "C" { #include <proc_service.h> -EXTERN_C_POP +} #else /* HAVE_PROC_SERVICE_H */ @@ -69,7 +69,7 @@ EXTERN_C_POP # endif #endif -EXTERN_C_PUSH +extern "C" { /* Functions in this interface return one of these status codes. */ typedef enum @@ -166,7 +166,7 @@ extern ps_err_e ps_lsetxregs (struct ps_prochandle *ph, lwpid_t lwpid, /* Log a message (sends to gdb_stderr). */ extern void ps_plog (const char *fmt, ...); -EXTERN_C_POP +} #endif /* HAVE_PROC_SERVICE_H */ |