]> git.cworth.org Git - obsolete/notmuch-old/commitdiff
lib/getdate: Add a very simple config.h file.
authorCarl Worth <cworth@cworth.org>
Thu, 11 Mar 2010 00:22:54 +0000 (16:22 -0800)
committerCarl Worth <cworth@cworth.org>
Thu, 11 Mar 2010 00:31:10 +0000 (16:31 -0800)
Here we are merely enabling the _GL_UNUSED macro for versions of gcc
that support it. The getdate source code doesn't require anything else.

lib/getdate/config.h [new file with mode: 0644]

diff --git a/lib/getdate/config.h b/lib/getdate/config.h
new file mode 100644 (file)
index 0000000..7e119d1
--- /dev/null
@@ -0,0 +1,15 @@
+/* Everything in this config.h is currently hard-coded. If you'd like
+ * something more sophisticated here, we could do that in the notmuch
+ * configure script. Let us know at notmuch@notmuchmail.org
+ */
+
+#ifndef GETDATE_CONFIG_H
+#define GETDATE_CONFIG_H
+
+#if __GNUC__ > 3 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 7)
+# define _GL_UNUSED __attribute__((unused))
+#else
+# define _GL_UNUSED
+#endif
+
+#endif