Need a small patch for Android
This commit is contained in:
14
libwpd/libwpd-0.9.2.patch
Normal file
14
libwpd/libwpd-0.9.2.patch
Normal 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());
|
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user