[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to replace a function
From: |
Rob Browning |
Subject: |
Re: How to replace a function |
Date: |
Fri, 07 Mar 2003 10:44:34 -0600 |
User-agent: |
Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-pc-linux-gnu) |
address@hidden writes:
> we are trying to build a guile extension which should link
> smoothly against 1.6 and 1.7. If possible, we would like
> to use The Blessed Function (it's scm_c_string2str(), for
> the record). But alas, 1.6 hasn't got that. It seems that
> AC_REPLACE_FUNCS is the right macro (first do AC_CHECK_LIB,
> right?).
One other option. Could you you use something like this in a C file
instead?
#ifdef SCM_MAJOR_VERSION \
&& (SCM_MAJOR_VERSION == 1) \
&& (SCM_MINOR_VERSION == 6)
# include "augment-1.6.c"
#endif
and add something similar in the header(s) for the missing prototypes?
--
Rob Browning
rlb @defaultvalue.org, @linuxdevel.com, and @debian.org
Previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4