[mapguide-commits] r7243 - sandbox/adsk/2.5k/Common/Stylization
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Thu Dec 6 10:12:25 PST 2012
Author: waltweltonlair
Date: 2012-12-06 10:12:24 -0800 (Thu, 06 Dec 2012)
New Revision: 7243
Modified:
sandbox/adsk/2.5k/Common/Stylization/SE_StyleVisitor.cpp
Log:
Fix Linux build...
Modified: sandbox/adsk/2.5k/Common/Stylization/SE_StyleVisitor.cpp
===================================================================
--- sandbox/adsk/2.5k/Common/Stylization/SE_StyleVisitor.cpp 2012-12-06 18:04:11 UTC (rev 7242)
+++ sandbox/adsk/2.5k/Common/Stylization/SE_StyleVisitor.cpp 2012-12-06 18:12:24 UTC (rev 7243)
@@ -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