summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-16 22:06:21 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-16 22:06:21 +0000
commit106d2d8c86bd35ccba6a9f87124742df0d1759d5 (patch)
treee33e10f452cfa371df9c99342eafb82d43a85b70
parent623d9266d3f93e84bb3e1dee69733673e2cfd00b (diff)
downloadnuttx-106d2d8c86bd35ccba6a9f87124742df0d1759d5.tar.gz
nuttx-106d2d8c86bd35ccba6a9f87124742df0d1759d5.tar.bz2
nuttx-106d2d8c86bd35ccba6a9f87124742df0d1759d5.zip
Define 'inline' for SDCC so that code can use the inline storage class if not supported
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@74 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/include/nuttx/compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/include/nuttx/compiler.h b/nuttx/include/nuttx/compiler.h
index 304759065..b0ea16f38 100644
--- a/nuttx/include/nuttx/compiler.h
+++ b/nuttx/include/nuttx/compiler.h
@@ -159,6 +159,7 @@
/* SDCC does not support inline functions */
# undef CONFIG_HAVE_INLINE
+# define inline
/* SDCC does not support type long long or type double */
@@ -191,6 +192,7 @@
# undef CONFIG_LONG_IS_NOT_INT
# undef CONFIG_PTR_IS_NOT_INT
# undef CONFIG_HAVE_INLINE
+# define inline
# undef CONFIG_HAVE_LONG_LONG
# undef CONFIG_HAVE_DOUBLE
# undef CONFIG_CAN_PASS_STRUCTS