[PATCH] ruby: extern linkage portability improvement
Charlie Allom
charlie at mediasp.com
Mon May 14 05:42:16 PDT 2012
On Thu, May 10, 2012 at 08:12:44PM +0300, Tomi Ollila <tomi.ollila at iki.fi> wrote:
> Some C compilers are stricter when it comes to (tentative) definition
> of a variable -- in those compilers introducing variable without 'extern'
> keyword always allocates new 'storage' to the variable and linking all
> these modules fails due to duplicate symbols.
>
> This change uses some macro trickery to avoid writing every variable twice.
>
> This is reimplementation of Charlie Allom's patch:
> id:"1336481467-66356-1-git-send-email-charlie at mediasp.com"
>
> combining information from other change made by Ali Polatel.
> ---
>
> Charlie: could you test whether this patch actually work ? :)
Hi Tomi,
This works for me.
C.
--
+442077294797
http://mediasp.com/
More information about the notmuch
mailing list