about summary refs log tree commit diff stats
path: root/src/LYStrings.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2009-03-17 23:40:17 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2009-03-17 23:40:17 -0400
commitb8139b764120cebfc7b3cbb0afd3e07578285a3d (patch)
treef5b357787723e88aa93e1f76318fdbaa3bbf4749 /src/LYStrings.c
parent0ea2275add5f7599cc9e28a9ea1f5755cbff07fe (diff)
downloadlynx-snapshots-b8139b764120cebfc7b3cbb0afd3e07578285a3d.tar.gz
snapshot of project "lynx", label v2-8-7dev_13d
Diffstat (limited to 'src/LYStrings.c')
-rw-r--r--src/LYStrings.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/LYStrings.c b/src/LYStrings.c
index 943a2eba..daecaae4 100644
--- a/src/LYStrings.c
+++ b/src/LYStrings.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYStrings.c,v 1.164 2009/03/11 00:31:09 tom Exp $ */
+/* $LynxId: LYStrings.c,v 1.165 2009/03/17 23:40:17 tom Exp $ */
 #include <HTUtils.h>
 #include <HTCJK.h>
 #include <UCAux.h>
@@ -5299,7 +5299,12 @@ int LYscanFloat2(const char **source, float *result)
 
 	if (*src != '.') {
 	    temp = NULL;
-	    *result = (float) strtol(src, &temp, 10);
+#ifdef _WIN32_WINNT
+#define WIN32_FIX (float)
+#else
+#define WIN32_FIX /* nothing */
+#endif
+	    *result = WIN32_FIX strtol(src, &temp, 10);
 	    src = temp;
 	}
 	if (src != 0 && *src == '.') {