summaryrefslogtreecommitdiff
path: root/nuttx/lib
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-04 15:12:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-11-04 15:12:55 +0000
commitdec5edaa7fcf561f5538ca3ba0af07e402a6b55e (patch)
tree91d9f298d4568c87e8a0c3f4211e229dc80f2b13 /nuttx/lib
parent9c2462da3c765755e63a15e85050e92a9d873a6c (diff)
downloadnuttx-dec5edaa7fcf561f5538ca3ba0af07e402a6b55e.tar.gz
nuttx-dec5edaa7fcf561f5538ca3ba0af07e402a6b55e.tar.bz2
nuttx-dec5edaa7fcf561f5538ca3ba0af07e402a6b55e.zip
RGMP 4.0 update from Qiang Yu
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5305 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r--nuttx/lib/Kconfig7
-rw-r--r--nuttx/lib/string/lib_strchr.c2
2 files changed, 9 insertions, 0 deletions
diff --git a/nuttx/lib/Kconfig b/nuttx/lib/Kconfig
index 440e9c3e2..1c93bb047 100644
--- a/nuttx/lib/Kconfig
+++ b/nuttx/lib/Kconfig
@@ -223,6 +223,13 @@ config MEMSET_64BIT
Compiles memset() for architectures that suppport 64-bit operations
efficiently.
+config ARCH_STRCHR
+ bool "strchr()"
+ default n
+ ---help---
+ Select this option if the architecture provides an optimized version
+ of strchr().
+
config ARCH_STRCMP
bool "strcmp()"
default n
diff --git a/nuttx/lib/string/lib_strchr.c b/nuttx/lib/string/lib_strchr.c
index ad7273862..d0bd22a0e 100644
--- a/nuttx/lib/string/lib_strchr.c
+++ b/nuttx/lib/string/lib_strchr.c
@@ -59,6 +59,7 @@
*
****************************************************************************/
+#ifndef CONFIG_ARCH_STRCHR
FAR char *strchr(FAR const char *s, int c)
{
if (s)
@@ -74,3 +75,4 @@ FAR char *strchr(FAR const char *s, int c)
return NULL;
}
+#endif