|
Message-Id: <1350764145-10305-3-git-send-email-awg@embtoolkit.org> Date: Sat, 20 Oct 2012 22:15:43 +0200 From: Abdoulaye Walsimou Gaye <awg@...toolkit.org> To: musl@...ts.openwall.com Cc: Abdoulaye Walsimou Gaye <awg@...toolkit.org> Subject: [PATCH 2/4] Add basic sys/cdefs.h found on most unix 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 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_ */ -- 1.7.9.5
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.