]> git.ozlabs.org Git - ccan/commit
compiler: don't override existing definitions.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 28 Apr 2011 03:52:07 +0000 (13:22 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 28 Apr 2011 04:26:24 +0000 (13:56 +0930)
commite37b906781eeddb89d2ba6c5c39e9d20e4111c18
treeb9754389f5a74736f714e40e061cf150f85acc4e
parent5bfb3995da36408ded842c36052a5eadd602c431
compiler: don't override existing definitions.

It's common when integrating CCAN into existing projects that they define
such constants for themselves.  In an ideal world, the entire project
switches to one set of definitions, but for large projects (eg SAMBA)
that's not realistic and conflicts with the aim of making CCAN modules
easy to "drop in" to existing code.

(This is a generalization of Douglas Bagnell's patch sent in Message-ID:
<4DB8D00D.8000800@paradise.net.nz>).
ccan/compiler/compiler.h