notmuch.git  about / heads / tags
Unnamed repository; edit this file 'description' to name the repository.
   commit fc3b51f799ba5da9deafbbc4f75cf72b897a6ac8 (patch)
   parent cc307647 lib/getdate: Tweak xalloc-die to avoid more gnulib dependencies.
     tree 0adb35908bac8b2c000bcb908e6ef1a914f4e5cc
   author Carl Worth <cworth@cworth.org>  2010-03-10 16:22:54 -0800
committer Carl Worth <cworth@cworth.org>  2010-03-10 16:31:10 -0800

lib/getdate: Add a very simple config.h file.

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 | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/lib/getdate/config.h b/lib/getdate/config.h
new file mode 100644
index 00000000..7e119d18
--- /dev/null
+++ b/lib/getdate/config.h
@@ -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


glossary
--------
Commit objects reference one tree, and zero or more parents.

Single parent commits can typically generate a patch in
unified diff format via `git format-patch'.

Multiple parents means the commit is a merge.

Root commits have no ancestor.  Note that it is
possible to have multiple root commits when merging independent histories.

Every commit references one top-level tree object.

git clone https://yhetil.org/notmuch.git