]> git.cworth.org Git - obsolete/notmuch-old/commit
ruby: extern linkage portability improvement
authorTomi Ollila <tomi.ollila@iki.fi>
Sun, 24 Jun 2012 18:48:34 +0000 (21:48 +0300)
committerDavid Bremner <bremner@debian.org>
Sat, 30 Jun 2012 01:24:17 +0000 (22:24 -0300)
commitd796dad4edce71c1cfb245ffd2c438f26c84f804
treee0925ff92907b47bcbca85b3523ce69bfbda45fe
parentae1940cedc16a551b9f20d9ef77400dae26f8020
ruby: extern linkage portability improvement

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 is reimplementation of Charlie Allom's patch:
id:"1336481467-66356-1-git-send-email-charlie@mediasp.com",
written originally by Ali Polatel. This version has
more accurate commit message.
bindings/ruby/defs.h
bindings/ruby/init.c