diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-11-04 15:12:55 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-11-04 15:12:55 +0000 |
commit | f561a5ab0302e260c2df461cc9c32c9b1535c243 (patch) | |
tree | 91d9f298d4568c87e8a0c3f4211e229dc80f2b13 /nuttx/lib | |
parent | 0062c0322665d7e117d4c86b0daec806e893e62a (diff) | |
download | px4-firmware-f561a5ab0302e260c2df461cc9c32c9b1535c243.tar.gz px4-firmware-f561a5ab0302e260c2df461cc9c32c9b1535c243.tar.bz2 px4-firmware-f561a5ab0302e260c2df461cc9c32c9b1535c243.zip |
RGMP 4.0 update from Qiang Yu
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5305 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib')
-rw-r--r-- | nuttx/lib/Kconfig | 7 | ||||
-rw-r--r-- | nuttx/lib/string/lib_strchr.c | 2 |
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 |