notmuch-private.h: Move NOTMUCH_BEGIN_DECLS earlier
authorCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2009 22:51:13 +0000 (15:51 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 21 Oct 2009 22:51:13 +0000 (15:51 -0700)
We actually need this before the include of xutil.h, but
it was previously stuck randomly among various system
includes. Instead, put it at the top, right after include
the notmuch.h header that defines it.

notmuch-private.h

index e64e92ffae44e4e2050fbf992599153b8b087401..7cd003f84e5607f997362cc4e1aec4a69d7c5c29 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "notmuch.h"
 
+NOTMUCH_BEGIN_DECLS
+
 #ifndef _GNU_SOURCE
 #define _GNU_SOURCE /* For getline */
 #endif
@@ -39,8 +41,6 @@
 #include <unistd.h>
 #include <ctype.h>
 
-NOTMUCH_BEGIN_DECLS
-
 #include <talloc.h>
 
 #include "xutil.h"