diff options
author | Tor Lillqvist <tml@iki.fi> | 2011-06-10 00:30:50 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2011-06-10 00:31:11 +0300 |
commit | e9f849a029487f0355425395c794cc98bc549239 (patch) | |
tree | ebdde3a69c980feaa99f2837b8b1f94eb4d2cf7b /libwpg | |
parent | 0efc8abb40da13843f556b802061ebae33c53b90 (diff) |
Need a small patch for Android
Diffstat (limited to 'libwpg')
-rw-r--r-- | libwpg/libwpg-0.2.0.patch | 14 | ||||
-rw-r--r-- | libwpg/makefile.mk | 4 |
2 files changed, 18 insertions, 0 deletions
diff --git a/libwpg/libwpg-0.2.0.patch b/libwpg/libwpg-0.2.0.patch new file mode 100644 index 000000000000..86567b1e73ae --- /dev/null +++ b/libwpg/libwpg-0.2.0.patch @@ -0,0 +1,14 @@ +--- misc/build/libwpg-0.2.0/src/lib/WPGSVGGenerator.cpp ++++ misc/build/libwpg-0.2.0/src/lib/WPGSVGGenerator.cpp +@@ -30,7 +30,11 @@ + { + std::ostringstream tempStream; + tempStream << value; ++#ifndef __ANDROID__ + std::string decimalPoint(localeconv()->decimal_point); ++#else ++ std::string decimalPoint("."); ++#endif + if ((decimalPoint.size() == 0) || (decimalPoint == ".")) + return tempStream.str(); + std::string stringValue(tempStream.str()); diff --git a/libwpg/makefile.mk b/libwpg/makefile.mk index 0fa701f10075..44ecccea2d20 100644 --- a/libwpg/makefile.mk +++ b/libwpg/makefile.mk @@ -51,6 +51,10 @@ INCPRE+=$(SOLARVER)$/$(UPD)$/$(INPATH)$/inc$/libwpd-stream TARFILE_NAME=libwpg-0.2.0 TARFILE_MD5=5ba6a61a2f66dfd5fee8cdd4cd262a37 + +PATCH_FILES=$(TARFILE_NAME).patch + + BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS) BUILD_DIR=src/lib |