From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/2157 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH 2/4] Add basic sys/cdefs.h found on most unix Date: Sat, 20 Oct 2012 16:18:41 -0700 Message-ID: <20121020161841.ef32cdd2.idunham@lavabit.com> References: <1350764145-10305-1-git-send-email-awg@embtoolkit.org> <1350764145-10305-3-git-send-email-awg@embtoolkit.org> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1350775138 5921 80.91.229.3 (20 Oct 2012 23:18:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2012 23:18:58 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-2158-gllmg-musl=m.gmane.org@lists.openwall.com Sun Oct 21 01:19:04 2012 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1TPiJs-0007fr-0J for gllmg-musl@plane.gmane.org; Sun, 21 Oct 2012 01:19:04 +0200 Original-Received: (qmail 27869 invoked by uid 550); 20 Oct 2012 23:18:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 27861 invoked from network); 20 Oct 2012 23:18:56 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=lavabit; d=lavabit.com; b=pUi03PRewn93kN3ReyhroGKkMFe1Vp/3YTurZB7+5xjSY1jQLTuG0DDoF2l/mWyqE71qKFnmJYjf7QIVm5kTQAIpq4bCM/OdRKkxtjkwlHtGZCB+0St5sORodY3xejHrCXCg5d3lIeDHs8AvJ91SRuupj5hv8Jg+tbL31uvdXCA=; h=Date:From:To:Subject:Message-Id:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; In-Reply-To: <1350764145-10305-3-git-send-email-awg@embtoolkit.org> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; i486-pc-linux-gnu) Xref: news.gmane.org gmane.linux.lib.musl.general:2157 Archived-At: On Sat, 20 Oct 2012 22:15:43 +0200 Abdoulaye Walsimou Gaye wrote: > Signed-off-by: Abdoulaye Walsimou Gaye > --- > include/sys/cdefs.h | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > create mode 100644 include/sys/cdefs.h I'm pretty sure that the last three times sys/cdefs.h was proposed, it was rejected. > diff --git a/include/sys/cdefs.h b/include/sys/cdefs.h > new file mode 100644 > index 0000000..917cdd6 > --- /dev/null > +++ b/include/sys/cdefs.h > @@ -0,0 +1,22 @@ > +#ifndef _SYS_CDEFS_H_ > +#define _SYS_CDEFS_H_ > + > +#if defined(__cplusplus) > +#define __BEGIN_DECLS extern "C" { > +#define __END_DECLS } > +#else > +#define __BEGIN_DECLS > +#define __END_DECLS > +#endif > + > +/* > + * Test if currently used gcc version is equal to or greater than specified. > + */ > +#if defined(__GNUC__) > +#define __GNUC_PREREQ(__maj, __min) \ > + (__GNUC__ > (__maj) || __GNUC__ == (__maj) && __GNUC_MINOR__ >= (__min)) > +#else > +#define __GNUC_PREREQ(__maj, __min) 0 > +#endif > + > +#endif /* !_SYS_CDEFS_H_ */ > -- -- Isaac Dunham