Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 87 / acf2a1a524324cbc82d8a9d7a723e08d905903
1 Return-Path: <teythoon@jade-hamburg.de>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 570E6431FD0\r
6         for <notmuch@notmuchmail.org>; Mon, 24 Sep 2012 08:21:45 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id oHSQ91Ek7asz for <notmuch@notmuchmail.org>;\r
16         Mon, 24 Sep 2012 08:21:43 -0700 (PDT)\r
17 Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])\r
18         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 6255B431FD2\r
21         for <notmuch@notmuchmail.org>; Mon, 24 Sep 2012 08:21:40 -0700 (PDT)\r
22 Received: from mail.jade-hamburg.de (mail.jade-hamburg.de [85.183.11.228])\r
23         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
24         (No client certificate requested)\r
25         by mail.cryptobitch.de (Postfix) with ESMTPSA id 3D3EA5AB292\r
26         for <notmuch@notmuchmail.org>; Mon, 24 Sep 2012 17:21:39 +0200 (CEST)\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)\r
28         id ADA42DF2A8; Mon, 24 Sep 2012 17:21:38 +0200 (CEST)\r
29 Received: from thinkbox.jade-hamburg.de (mail.jade-hamburg.de [85.183.11.228])\r
30         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
31         (No client certificate requested) (Authenticated sender: teythoon)\r
32         by mail.jade-hamburg.de (Postfix) with ESMTPSA id 06BC7DF2A1;\r
33         Mon, 24 Sep 2012 17:21:32 +0200 (CEST)\r
34 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.80)\r
35         (envelope-from <teythoon@thinkbox.jade-hamburg.de>)\r
36         id 1TGATQ-0007l2-Qi; Mon, 24 Sep 2012 17:21:28 +0200\r
37 From: Justus Winter <4winter@informatik.uni-hamburg.de>\r
38 To: notmuch@notmuchmail.org\r
39 Subject: [PATCH 1/6] Provide a __has_attribute compatibility macro\r
40 Date: Mon, 24 Sep 2012 17:21:15 +0200\r
41 Message-Id:\r
42  <1348500080-29726-1-git-send-email-4winter@informatik.uni-hamburg.de>\r
43 X-Mailer: git-send-email 1.7.10.4\r
44 In-Reply-To: <873927eb5i.fsf@convex-new.cs.unb.ca>\r
45 References: <873927eb5i.fsf@convex-new.cs.unb.ca>\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.13\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Mon, 24 Sep 2012 15:21:45 -0000\r
59 \r
60 __has_attribute is defined by clang and tests whether a given function\r
61 attribute is supported by clang.\r
62 \r
63 Add a compatibility macro for other compilers.\r
64 \r
65 Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>\r
66 ---\r
67  compat/function-attributes.h |   31 +++++++++++++++++++++++++++++++\r
68  1 file changed, 31 insertions(+)\r
69  create mode 100644 compat/function-attributes.h\r
70 \r
71 diff --git a/compat/function-attributes.h b/compat/function-attributes.h\r
72 new file mode 100644\r
73 index 0000000..18f9090\r
74 --- /dev/null\r
75 +++ b/compat/function-attributes.h\r
76 @@ -0,0 +1,31 @@\r
77 +/* function-attributes.h - Provides compiler abstractions for\r
78 + *                         function attributes\r
79 + *\r
80 + * Copyright (c) 2012 Justus Winter <4winter@informatik.uni-hamburg.de>\r
81 + *\r
82 + * This program is free software: you can redistribute it and/or modify\r
83 + * it under the terms of the GNU General Public License as published by\r
84 + * the Free Software Foundation, either version 3 of the License, or\r
85 + * (at your option) any later version.\r
86 + *\r
87 + * This program is distributed in the hope that it will be useful,\r
88 + * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
89 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
90 + * GNU General Public License for more details.\r
91 + *\r
92 + * You should have received a copy of the GNU General Public License\r
93 + * along with this program.  If not, see http://www.gnu.org/licenses/ .\r
94 + */\r
95 +\r
96 +#ifndef FUNCTION_ATTRIBUTES_H\r
97 +#define FUNCTION_ATTRIBUTES_H\r
98 +\r
99 +/* clang provides this macro to test for support for function\r
100 + * attributes. If it isn't defined, this provides a compatibility\r
101 + * macro for other compilers.\r
102 + */\r
103 +#ifndef __has_attribute\r
104 +#define __has_attribute(x) 0\r
105 +#endif\r
106 +\r
107 +#endif\r
108 -- \r
109 1.7.10.4\r
110 \r