diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-18 03:00:26 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-09-18 03:00:26 +0000 |
commit | 0580aad17f754a1438772dc2db396f4401d874be (patch) | |
tree | 37d1b058ba03dd2801bdd3b815048d35fb9bcf94 /nuttx/include/nuttx/compiler.h | |
parent | 9e15c4be04516ac9957f33ea179a188cc2a081a0 (diff) | |
download | nuttx-0580aad17f754a1438772dc2db396f4401d874be.tar.gz nuttx-0580aad17f754a1438772dc2db396f4401d874be.tar.bz2 nuttx-0580aad17f754a1438772dc2db396f4401d874be.zip |
Fixed for CYGWIN build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@346 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/nuttx/compiler.h')
-rw-r--r-- | nuttx/include/nuttx/compiler.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/nuttx/include/nuttx/compiler.h b/nuttx/include/nuttx/compiler.h index 2b7a96788..f39d10674 100644 --- a/nuttx/include/nuttx/compiler.h +++ b/nuttx/include/nuttx/compiler.h @@ -53,11 +53,18 @@ * excluded from the link. */ -# define CONFIG_HAVE_WEAKFUNCTIONS 1 -# define weak_alias(name, aliasname) \ - extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))); -# define weak_function __attribute__ ((weak)) -# define weak_const_function __attribute__ ((weak, __const__)) +# ifndef __CYGWIN__ +# define CONFIG_HAVE_WEAKFUNCTIONS 1 +# define weak_alias(name, aliasname) \ + extern __typeof (name) aliasname __attribute__ ((weak, alias (#name))); +# define weak_function __attribute__ ((weak)) +# define weak_const_function __attribute__ ((weak, __const__)) +# else +# undef CONFIG_HAVE_WEAKFUNCTIONS +# define weak_alias(name, aliasname) +# define weak_function +# define weak_const_function +#endif /* The noreturn attribute informs GCC that the function will * not return. |