X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fntdb%2Fntdb.h;h=a0c229c1e546b7f34c40b78789e4b01710ec181e;hp=a3a627f28d8f9dee48c8798cceb115a02f6bbbe6;hb=979071e8587d4819a7f78613b68d29e222e5db63;hpb=401bed521f80ca1145aafcddc1c532f05de5d313 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;