]> granicus.if.org Git - neomutt/commitdiff
move notmuch test macro
authorRichard Russon <rich@flatcap.org>
Thu, 25 Oct 2018 21:42:56 +0000 (22:42 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 25 Oct 2018 21:42:56 +0000 (22:42 +0100)
notmuch/mutt_notmuch.c
notmuch/notmuch_private.h

index b91446567d41bc6c7d777dc7168d0805b1a7ca3d..304e0e0c53b12c1dec6cafb7185faa104c3a02af 100644 (file)
@@ -83,17 +83,6 @@ char *NmQueryWindowTimebase; ///< Config: (notmuch) Units for the time duration
 char *NmRecordTags; ///< Config: (notmuch) Tags to apply to the 'record' mailbox (sent mail)
 char *NmUnreadTag; ///< Config: (notmuch) Tag to use for unread messages
 
-#ifdef LIBNOTMUCH_CHECK_VERSION
-#undef LIBNOTMUCH_CHECK_VERSION
-#endif
-
-/* @def The definition in <notmuch.h> is broken */
-#define LIBNOTMUCH_CHECK_VERSION(major, minor, micro)                             \
-  (LIBNOTMUCH_MAJOR_VERSION > (major) ||                                          \
-   (LIBNOTMUCH_MAJOR_VERSION == (major) && LIBNOTMUCH_MINOR_VERSION > (minor)) || \
-   (LIBNOTMUCH_MAJOR_VERSION == (major) &&                                        \
-    LIBNOTMUCH_MINOR_VERSION == (minor) && LIBNOTMUCH_MICRO_VERSION >= (micro)))
-
 /**
  * string_to_query_type - Lookup a query type
  * @param str String to lookup
index 43e16c688e9e0d87aed663ed3de9f3f968fecf26..e26724d601652a8a8733e6c583ab4ec2c5b6f1d1 100644 (file)
 #ifndef MUTT_NOTMUCH_NOTMUCH_PRIVATE_H
 #define MUTT_NOTMUCH_NOTMUCH_PRIVATE_H
 
+#ifdef LIBNOTMUCH_CHECK_VERSION
+#undef LIBNOTMUCH_CHECK_VERSION
+#endif
+
+/* @def The definition in <notmuch.h> is broken */
+#define LIBNOTMUCH_CHECK_VERSION(major, minor, micro)                             \
+  (LIBNOTMUCH_MAJOR_VERSION > (major) ||                                          \
+   (LIBNOTMUCH_MAJOR_VERSION == (major) && LIBNOTMUCH_MINOR_VERSION > (minor)) || \
+   (LIBNOTMUCH_MAJOR_VERSION == (major) &&                                        \
+    LIBNOTMUCH_MINOR_VERSION == (minor) && LIBNOTMUCH_MICRO_VERSION >= (micro)))
+
 struct Mailbox;
 
 /**