summaryrefslogtreecommitdiff
path: root/guile.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2013-09-30 10:56:20 -0400
committerPaul Smith <psmith@gnu.org>2013-09-30 10:56:20 -0400
commitb1c7f0df4eadf55721902b5cc4236a4aaae7ee6a (patch)
tree6421e9f36eee4122078f5102251aaca80bfb57d1 /guile.c
parent8e12202870d40488cc5899254e227d8038433839 (diff)
downloadgunmake-b1c7f0df4eadf55721902b5cc4236a4aaae7ee6a.tar.gz
Fix portability issues for Guile 1.8.
Diffstat (limited to 'guile.c')
-rw-r--r--guile.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/guile.c b/guile.c
index 142c321..07a2147 100644
--- a/guile.c
+++ b/guile.c
@@ -26,11 +26,12 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
/* Pre-2.0 versions of Guile don't have a typedef for gsubr function types. */
#if SCM_MAJOR_VERSION < 2
-# define GSUBR_TYPE SCM (*) ()
+# define GSUBR_TYPE SCM (*) ()
/* Guile 1.x doesn't really support i18n. */
-# define scm_from_utf8_string(_s) (_s)
+# define EVAL_STRING(_s) scm_c_eval_string (_s)
#else
-# define GSUBR_TYPE scm_t_subr
+# define GSUBR_TYPE scm_t_subr
+# define EVAL_STRING(_s) scm_eval_string (scm_from_utf8_string (_s))
#endif
static SCM make_mod = SCM_EOL;
@@ -109,7 +110,7 @@ guile_init (void *arg UNUSED)
static void *
internal_guile_eval (void *arg)
{
- return cvt_scm_to_str (scm_eval_string (scm_from_utf8_string (arg)));
+ return cvt_scm_to_str (EVAL_STRING (arg));
}
/* This is the function registered with make */