diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-21 02:19:19 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-02-21 02:19:19 +0000 |
commit | 94e5b72f50f3096b83fe50c7b57324a08e318f29 (patch) | |
tree | 99970ffd265837ba0a438605c929cff0b338b0ea /nuttx/include/nuttx/compiler.h | |
parent | f26db4e2308c961f1cb52fcb656c85a144f8fd16 (diff) | |
download | nuttx-94e5b72f50f3096b83fe50c7b57324a08e318f29.tar.gz nuttx-94e5b72f50f3096b83fe50c7b57324a08e318f29.tar.bz2 nuttx-94e5b72f50f3096b83fe50c7b57324a08e318f29.zip |
Eliminating SDCC compilation errors
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@17 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/nuttx/compiler.h')
-rw-r--r-- | nuttx/include/nuttx/compiler.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/compiler.h b/nuttx/include/nuttx/compiler.h index 1916d8b9c..6f4e68baf 100644 --- a/nuttx/include/nuttx/compiler.h +++ b/nuttx/include/nuttx/compiler.h @@ -50,11 +50,19 @@ # define weak_function __attribute__ ((weak)) # define weak_const_function __attribute__ ((weak, __const__)) # define noreturn_function __attribute__ ((noreturn)) +# define reentrant_function +#elif defined(__SDCC__) +# define weak_alias(name, aliasname) +# define weak_function +# define weak_const_function +# define noreturn_function +# define reentrant_function __reentrant #else # define weak_alias(name, aliasname) # define weak_function # define weak_const_function # define noreturn_function +# define reentrant_function #endif /************************************************************ |