]> rtime.felk.cvut.cz Git - notmuch.git/commit
lib: fix definition of LIBNOTMUCH_CHECK_VERSION
authorDavid Bremner <david@tethera.net>
Tue, 7 Jun 2016 10:37:57 +0000 (07:37 -0300)
committerDavid Bremner <david@tethera.net>
Sat, 11 Jun 2016 16:01:44 +0000 (13:01 -0300)
commit44cfa90bdc4d814217b05fdc36f1595c9b54d729
tree3aa86d888699f3653796a5c2b8b33c7ca3b7af38
parent1e96445cb5dc333e22b9ce01245902ba23fdb437
lib: fix definition of LIBNOTMUCH_CHECK_VERSION

Fix bug reported in id:20160606124522.g2y2eazhhrwjsa4h@flatcap.org

Although the C99 standard 6.10 is a little non-obvious on this point,
the docs for e.g. gcc are unambiguous. And indeed in practice with the
extra space, this code fails

#include <stdio.h>
#define foo (x) (x+1)

int main(int argc, char **argv){
  printf("%d\n",foo(1));
}
lib/notmuch.h