Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 20 Oct 2012 16:18:41 -0700
From: Isaac Dunham <idunham@...abit.com>
To: musl@...ts.openwall.com
Subject: Re: [PATCH 2/4] Add basic sys/cdefs.h found on most unix

On Sat, 20 Oct 2012 22:15:43 +0200
Abdoulaye Walsimou Gaye <awg@...toolkit.org> wrote:

> Signed-off-by: Abdoulaye Walsimou Gaye <awg@...toolkit.org>
> ---
>  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 <idunham@...abit.com>

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.