Need a small patch for Android

This commit is contained in:
Tor Lillqvist
2011-06-10 00:22:07 +03:00
parent b6495a5310
commit 0efc8abb40
2 changed files with 17 additions and 0 deletions

14
libwpd/libwpd-0.9.2.patch Normal file
View File

@@ -0,0 +1,14 @@
--- misc/build/libwpd-0.9.2/src/lib/libwpd_internal.cpp
+++ misc/build/libwpd-0.9.2/src/lib/libwpd_internal.cpp
@@ -1229,7 +1229,11 @@
tempString.sprintf("0.0000");
else
tempString.sprintf("%.4f", value);
+#ifndef __ANDROID__
std::string decimalPoint(localeconv()->decimal_point);
+#else
+ std::string decimalPoint(".");
+#endif
if ((decimalPoint.size() == 0) || (decimalPoint == "."))
return tempString;
std::string stringValue(tempString.cstr());

View File

@@ -43,6 +43,9 @@ TARGET=wpd
TARFILE_NAME=libwpd-0.9.2
TARFILE_MD5=8d265a592619166f29c4672ea54812b7
PATCH_FILES=$(TARFILE_NAME).patch
BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS)
BUILD_DIR=src$/lib