From: Rusty Russell Date: Fri, 20 Mar 2015 01:06:28 +0000 (+1030) Subject: ntdb: assume HAVE_CCAN in header. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=6aa2f4e347e5d66a392b879fe901bc582099a552;hp=27968258cb402dfb75abccafc670d50f96fb4ceb ntdb: assume HAVE_CCAN in header. Signed-off-by: Rusty Russell --- diff --git a/ccan/ntdb/ntdb.h b/ccan/ntdb/ntdb.h index a3a627f2..a0c229c1 100644 --- a/ccan/ntdb/ntdb.h +++ b/ccan/ntdb/ntdb.h @@ -33,6 +33,7 @@ extern "C" { #include #include #else +#include "config.h" #if HAVE_FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 #endif @@ -59,24 +60,9 @@ extern "C" { #include #endif -#if HAVE_CCAN #include #include #include -#else -#ifndef typesafe_cb_preargs -/* Failing to have CCAN just mean less typesafe protection, etc. */ -#define typesafe_cb_preargs(rtype, atype, fn, arg, ...) \ - ((rtype (*)(__VA_ARGS__, atype))(fn)) -#endif -#ifndef cast_const -#if defined(__intptr_t_defined) || defined(HAVE_INTPTR_T) -#define cast_const(type, expr) ((type)((intptr_t)(expr))) -#else -#define cast_const(type, expr) ((type *)(expr)) -#endif -#endif -#endif /* !HAVE_CCAN */ union ntdb_attribute; struct ntdb_context;