Kaydet (Commit) 8f891ad0 authored tarafından Fridrich Štrba's avatar Fridrich Štrba

Trying to fix android build of libodfgen

Change-Id: I40be8e54199baf6f24a7b69b268fbff713a9a0a6
üst b9237f2a
......@@ -11,4 +11,10 @@ $(eval $(call gb_UnpackedTarball_UnpackedTarball,odfgen))
$(eval $(call gb_UnpackedTarball_set_tarball,odfgen,$(ODFGEN_TARBALL)))
$(eval $(call gb_UnpackedTarball_set_patchlevel,odfgen,1))
$(eval $(call gb_UnpackedTarball_add_patches,odfgen,\
libodfgen/libodfgen-0.0.0-android.patch \
))
# vim: set noet sw=4 ts=4:
diff --git a/src/OdgGenerator.cxx b/src/OdgGenerator.cxx
index 39d571b..5ebf60d 100644
--- a/src/OdgGenerator.cxx
+++ b/src/OdgGenerator.cxx
@@ -282,7 +282,7 @@ static WPXString doubleToString(const double value)
{
WPXString tempString;
tempString.sprintf("%.4f", value);
-#ifndef ANDROID
+#ifndef __ANDROID__
std::string decimalPoint(localeconv()->decimal_point);
#else
std::string decimalPoint(".");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment