From: Rusty Russell Date: Tue, 21 Feb 2012 04:59:06 +0000 (+1030) Subject: lib/ccan: define HAVE_CCAN. X-Git-Tag: samba-4.0.0alpha18~61 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fb8cf568caf43615f7a06a623209a0fade629a35;p=thirdparty%2Fsamba.git lib/ccan: define HAVE_CCAN. This allows public headers to use CCAN if available, and dummy macros if not (eg. tdb2). Signed-off-by: Rusty Russell --- diff --git a/lib/ccan/wscript b/lib/ccan/wscript index 9daf091e5b6..59fe93af8eb 100644 --- a/lib/ccan/wscript +++ b/lib/ccan/wscript @@ -3,6 +3,7 @@ import Logs, sys def configure(conf): + conf.DEFINE('HAVE_CCAN', 1) # FIXME: if they don't have -Werror, these will all fail. But they # probably will anyway... conf.CHECK_CODE('int __attribute__((cold)) func(int x) { return x; }',