X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Ftdb2.h;h=343264d588f0a04db188556f6f1f1f542cd4cd2b;hp=5e74bfe7883e48e7f1e52e1b5d1696d1ebc433fe;hb=7f63d84eb712c54c57c3d4e9a92ffefe2f1b2ade;hpb=46d8f62015fb8bf6fe173573a55ea3f6324cee0a diff --git a/ccan/tdb2/tdb2.h b/ccan/tdb2/tdb2.h index 5e74bfe7..343264d5 100644 --- a/ccan/tdb2/tdb2.h +++ b/ccan/tdb2/tdb2.h @@ -40,6 +40,7 @@ extern "C" { /* For uint64_t */ #include #endif +#include /* flags to tdb_store() */ #define TDB_REPLACE 1 /* Unused */ @@ -75,18 +76,6 @@ typedef struct tdb_data { size_t dsize; } TDB_DATA; -#ifndef PRINTF_ATTRIBUTE -#if (__GNUC__ >= 3) -/** Use gcc attribute to check printf fns. a1 is the 1-based index of - * the parameter containing the format, and a2 the index of the first - * argument. Note that some gcc 2.x versions don't handle this - * properly **/ -#define PRINTF_ATTRIBUTE(a1, a2) __attribute__ ((format (__printf__, a1, a2))) -#else -#define PRINTF_ATTRIBUTE(a1, a2) -#endif -#endif - struct tdb_context; /* FIXME: Make typesafe */