aboutsummaryrefslogtreecommitdiff
path: root/nuttx/lib/string/lib_strtod.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-09-14 14:07:21 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-09-14 14:07:21 +0000
commitcc0c42dd3194dc1742369d7fd8aaa8ad65f1ae26 (patch)
tree78375ed0dfcfed58f45bf266c76a1f9230df01c9 /nuttx/lib/string/lib_strtod.c
parentae33fc3ed02ad0c56612124a26028123c353bee0 (diff)
downloadpx4-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/lib_strtod.c')
-rw-r--r--nuttx/lib/string/lib_strtod.c7
1 files changed, 7 insertions, 0 deletions
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 */
+