X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-private.h;h=1302cd30b7eea0480bc2aae11fa9ff0a276b703d;hp=53e99bdd8a23634e815b2c62141c0039be17f8e4;hb=a8ae2cd214bca3c89b0f9a5566c227459eec40f5;hpb=9ec68aa9c4694bdf1b948bb93299e0270ec071ae diff --git a/notmuch-private.h b/notmuch-private.h index 53e99bdd..1302cd30 100644 --- a/notmuch-private.h +++ b/notmuch-private.h @@ -40,11 +40,14 @@ NOTMUCH_BEGIN_DECLS #include #include #include +#include #include #include "xutil.h" +#define COMPILE_TIME_ASSERT(pred) ((void)sizeof(char[1 - 2*!(pred)])) + /* Thanks to Andrew Tridgell's (SAMBA's) talloc for this definition of * unlikely. The talloc source code comes to us via the GNU LGPL v. 3. */ @@ -69,8 +72,7 @@ NOTMUCH_BEGIN_DECLS typedef enum { NOTMUCH_VALUE_TIMESTAMP = 0, - NOTMUCH_VALUE_MESSAGE_ID, - NOTMUCH_VALUE_THREAD + NOTMUCH_VALUE_MESSAGE_ID } notmuch_value_t; /* Xapian (with flint backend) complains if we provide a term longer