[mapguide-commits] r7242 - trunk/MgDev/Common/Stylization
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Dec 6 10:04:11 PST 2012
Author: waltweltonlair
Date: 2012-12-06 10:04:11 -0800 (Thu, 06 Dec 2012)
New Revision: 7242
Modified:
trunk/MgDev/Common/Stylization/SE_StyleVisitor.cpp
Log:
Fix linux build...
Modified: trunk/MgDev/Common/Stylization/SE_StyleVisitor.cpp
===================================================================
--- trunk/MgDev/Common/Stylization/SE_StyleVisitor.cpp 2012-12-06 17:42:11 UTC (rev 7241)
+++ trunk/MgDev/Common/Stylization/SE_StyleVisitor.cpp 2012-12-06 18:04:11 UTC (rev 7242)
@@ -212,7 +212,11 @@
if (quick_parse && buffer_len > 0 && buffer_len < BUFFER_SIZE)
{
buffer[buffer_len] = L'\0';
+#ifdef _WIN32
val = _wtof(buffer);
+#else
+ val = (double)wcstod(buffer, NULL);
+#endif
str = strTmp;
return true;
}
@@ -276,7 +280,11 @@
buffer[buffer_len] = L'\0';
if (!read_x)
{
+#ifdef _WIN32
x = _wtof(buffer);
+#else
+ x = (double)wcstod(buffer, NULL);
+#endif
read_x = true;
}
else
@@ -315,7 +323,11 @@
if (quick_parse && read_x && buffer_len > 0 && buffer_len < BUFFER_SIZE)
{
buffer[buffer_len] = L'\0';
+#ifdef _WIN32
y = _wtof(buffer);
+#else
+ y = (double)wcstod(buffer, NULL);
+#endif
str = strTmp;
return true;
}
More information about the mapguide-commits
mailing list