From ddb6d633875b76f9d772af901118233fc498253a Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Thu, 6 Oct 2016 19:23:37 +0100 Subject: gdb: Remove some C compiler support leftovers Remove some __cplusplus checks, inline EXPORTED_CONST, and update some comments. gdb/ChangeLog: 2016-10-06 Pedro Alves * cp-valprint.c (vtbl_ptr_name): Write "extern const" instead of EXPORTED_CONST. * stub-termcap.c: Remove __cplusplus checks. * common/common-defs.h [!__cplusplus] (EXTERN_C, EXTERN_C_PUSH, EXTERN_C_POP): Delete. * common/common-exceptions.h (GDB_XCPT_SJMP): Update comments. (GDB_XCPT) [!__cplusplus]: Delete. (throw_exception, throw_exception_sjlj): Update comments. * guile/guile-internal.h (as_a_scm_t_subr) [!__cplusplus]: Delete. * guile/guile.c (extension_language_guile): Write "extern const" instead of EXPORTED_CONST. * features/feature_to_c.sh: Don't emit !__cplusplus code. Write "extern const" instead of EXPORTED_CONST. --- gdb/common/common-defs.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'gdb/common/common-defs.h') diff --git a/gdb/common/common-defs.h b/gdb/common/common-defs.h index 2c94117..0d8d100 100644 --- a/gdb/common/common-defs.h +++ b/gdb/common/common-defs.h @@ -75,14 +75,8 @@ #include "cleanups.h" #include "common-exceptions.h" -#ifdef __cplusplus -# define EXTERN_C extern "C" -# define EXTERN_C_PUSH extern "C" { -# define EXTERN_C_POP } -#else -# define EXTERN_C extern -# define EXTERN_C_PUSH -# define EXTERN_C_POP -#endif +#define EXTERN_C extern "C" +#define EXTERN_C_PUSH extern "C" { +#define EXTERN_C_POP } #endif /* COMMON_DEFS_H */ -- cgit v1.1