This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
Re: [PATCH] Use FFI_DECLARE macros
- From: Dan Witte <dwitte at mozilla dot com>
- To: Mladen Turk <mturk at redhat dot com>
- Cc: libffi-discuss at sourceware dot org
- Date: Wed, 24 Feb 2010 09:31:39 -0800 (PST)
- Subject: Re: [PATCH] Use FFI_DECLARE macros
----- "Mladen Turk" <mturk@redhat.com> wrote:
> However I'll make another patch that would allow to
> build eaither static or dynamic library.
> This would however require that one wishing to use the static
> library would need to define -DLIBFFI_DECLARE_STATIC before
> including ffi.h
This should be a substitution in ffi.h.in, no? Just like
#define @TARGET@
for the target arch. Perhaps called @LINKAGE@, with FFI_DECLARE and FFI_EXPORT #defined appropriately immediately afterward.
Regards,
Dan