diff options
Diffstat (limited to 'gdb/guile')
-rw-r--r-- | gdb/guile/guile-internal.h | 8 | ||||
-rw-r--r-- | gdb/guile/guile.c | 2 |
2 files changed, 1 insertions, 9 deletions
diff --git a/gdb/guile/guile-internal.h b/gdb/guile/guile-internal.h index 0aa4a0a..5f819b8 100644 --- a/gdb/guile/guile-internal.h +++ b/gdb/guile/guile-internal.h @@ -50,8 +50,6 @@ typedef struct #define END_VARIABLES { NULL, SCM_BOOL_F, NULL } -#ifdef __cplusplus - /* Although scm_t_subr is meant to hold a function pointer, at least in some versions of guile, it is actually a typedef to "void *". That means that in C++, an explicit cast is necessary to convert @@ -88,12 +86,6 @@ as_a_scm_t_subr (SCM (*func) (SCM, SCM, SCM)) return (scm_t_subr) func; } -#else - -/* In C, just do an implicit conversion. */ -#define as_a_scm_t_subr(func) func - -#endif /* Scheme functions to define during initialization. */ typedef struct diff --git a/gdb/guile/guile.c b/gdb/guile/guile.c index 117561d..3a19eec 100644 --- a/gdb/guile/guile.c +++ b/gdb/guile/guile.c @@ -77,7 +77,7 @@ extern const struct extension_language_ops guile_extension_ops; /* The main struct describing GDB's interface to the Guile extension language. */ -EXPORTED_CONST struct extension_language_defn extension_language_guile = +extern const struct extension_language_defn extension_language_guile = { EXT_LANG_GUILE, "guile", |