diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-09-14 14:07:21 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-09-14 14:07:21 +0000 |
commit | cc0c42dd3194dc1742369d7fd8aaa8ad65f1ae26 (patch) | |
tree | 78375ed0dfcfed58f45bf266c76a1f9230df01c9 /nuttx/lib/string | |
parent | ae33fc3ed02ad0c56612124a26028123c353bee0 (diff) | |
download | px4-firmware-cc0c42dd3194dc1742369d7fd8aaa8ad65f1ae26.tar.gz px4-firmware-cc0c42dd3194dc1742369d7fd8aaa8ad65f1ae26.tar.bz2 px4-firmware-cc0c42dd3194dc1742369d7fd8aaa8ad65f1ae26.zip |
Add XML RPC server plus NXWM build fixes from Max Holtzberg
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@5150 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/lib/string')
-rw-r--r-- | nuttx/lib/string/Make.defs | 6 | ||||
-rw-r--r-- | nuttx/lib/string/lib_strtod.c | 7 |
2 files changed, 8 insertions, 5 deletions
diff --git a/nuttx/lib/string/Make.defs b/nuttx/lib/string/Make.defs index 014623eef..6b21c7f14 100644 --- a/nuttx/lib/string/Make.defs +++ b/nuttx/lib/string/Make.defs @@ -42,11 +42,7 @@ CSRCS += lib_checkbase.c lib_isbasedigit.c lib_memset.c lib_memchr.c \ lib_strncasecmp.c lib_strncat.c lib_strncmp.c lib_strncpy.c \ lib_strndup.c lib_strcasestr.c lib_strpbrk.c lib_strrchr.c\ lib_strspn.c lib_strstr.c lib_strtok.c lib_strtokr.c lib_strtol.c \ - lib_strtoll.c lib_strtoul.c lib_strtoull.c - -ifeq ($(CONFIG_LIBC_FLOATINGPOINT),y) -CSRCS += lib_strtod.c -endif + lib_strtoll.c lib_strtoul.c lib_strtoull.c lib_strtod.c # Add the string directory to the build diff --git a/nuttx/lib/string/lib_strtod.c b/nuttx/lib/string/lib_strtod.c index 86719c510..8fecd4571 100644 --- a/nuttx/lib/string/lib_strtod.c +++ b/nuttx/lib/string/lib_strtod.c @@ -37,10 +37,15 @@ * Included Files ****************************************************************************/ +#include <nuttx/config.h> +#include <nuttx/compiler.h> + #include <stdlib.h> #include <ctype.h> #include <errno.h> +#ifdef CONFIG_HAVE_DOUBLE + /**************************************************************************** * Pre-processor definitions ****************************************************************************/ @@ -232,3 +237,5 @@ double_t strtod(const char *str, char **endptr) return number; } +#endif /* CONFIG_HAVE_DOUBLE */ + |