X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2Fnotmuch-private.h;h=592cfb2b40d029aa19597b1a659efac436adb6ca;hp=37ccbb315fab19c6e8c78ba98be2c6a7e39daf23;hb=95dd5fe5d7e9cd8169a6e3174ea27376acd92870;hpb=1ea0b8bfe164a0f7a3e750236b8aef9b5ab8917e diff --git a/lib/notmuch-private.h b/lib/notmuch-private.h index 37ccbb31..592cfb2b 100644 --- a/lib/notmuch-private.h +++ b/lib/notmuch-private.h @@ -57,6 +57,9 @@ NOTMUCH_BEGIN_DECLS #define COMPILE_TIME_ASSERT(pred) ((void)sizeof(char[1 - 2*!(pred)])) +#define STRNCMP_LITERAL(var, literal) \ + strncmp ((var), (literal), sizeof (literal) - 1) + /* There's no point in continuing when we've detected that we've done * something wrong internally (as opposed to the user passing in a * bogus value).