summaryrefslogtreecommitdiff
path: root/libvisio
diff options
context:
space:
mode:
authorTor Lillqvist <tml@iki.fi>2011-06-10 00:34:18 +0300
committerTor Lillqvist <tml@iki.fi>2011-06-10 00:34:18 +0300
commit76e160a91c2cb770f87ee32bfcc1b383d5944dc3 (patch)
tree5652f3fbda786242a0d24272b83ccda251d672f8 /libvisio
parente9f849a029487f0355425395c794cc98bc549239 (diff)
Need a small patch for Android
Diffstat (limited to 'libvisio')
-rw-r--r--libvisio/libvisio-android.patch14
-rw-r--r--libvisio/makefile.mk3
2 files changed, 16 insertions, 1 deletions
diff --git a/libvisio/libvisio-android.patch b/libvisio/libvisio-android.patch
new file mode 100644
index 000000000000..b547913757d0
--- /dev/null
+++ b/libvisio/libvisio-android.patch
@@ -0,0 +1,14 @@
+--- misc/build/libvisio-0.0.0/src/lib/VSDSVGGenerator.cpp
++++ misc/build/libvisio-0.0.0/src/lib/VSDSVGGenerator.cpp
+@@ -33,7 +33,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/libvisio/makefile.mk b/libvisio/makefile.mk
index 33708ba65e95..7f2cbf3c01a4 100644
--- a/libvisio/makefile.mk
+++ b/libvisio/makefile.mk
@@ -58,7 +58,8 @@ TARFILE_NAME=libvisio-0.0.0
TARFILE_MD5=763bb9b14eec5ba9a533d7a9279301db
PATCH_FILES=\
- libvisio-mingw-cross.patch
+ libvisio-mingw-cross.patch \
+ libvisio-android.patch
BUILD_ACTION=dmake $(MFLAGS) $(CALLMACROS)
BUILD_DIR=src$/lib