[Libreoffice-commits] .: i18npool/Library_i18nisolang1.mk liblangtag/liblangtag-0.4.0-windows.patch

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Nov 6 15:22:41 PST 2012


 i18npool/Library_i18nisolang1.mk          |    5 +++++
 liblangtag/liblangtag-0.4.0-windows.patch |    6 +++---
 2 files changed, 8 insertions(+), 3 deletions(-)

New commits:
commit aacefd4711bd84e59e23b1a91d21ff18f64e951c
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date:   Wed Nov 7 00:22:05 2012 +0100

    Fix windows linking of i18npool
    
    Change-Id: I9e66d0528a8b095897e27216352979c4bcfb4eae

diff --git a/i18npool/Library_i18nisolang1.mk b/i18npool/Library_i18nisolang1.mk
index 869c21a..3864c6e 100644
--- a/i18npool/Library_i18nisolang1.mk
+++ b/i18npool/Library_i18nisolang1.mk
@@ -61,6 +61,11 @@ ifeq ($(ENABLE_LIBLANGTAG),YES)
 $(eval $(call gb_Library_add_defs,i18nisolang1,-DENABLE_LIBLANGTAG))
 $(eval $(call gb_Library_use_external,i18nisolang1,liblangtag))
 $(eval $(call gb_Library_use_external,i18nisolang1,libxml2))
+$(eval $(call gb_Library_use_system_win32_libs,i18nisolang1,\
+        $(if $(filter $(COM),MSC), \
+                kernel32 \
+        ) \
+))
 endif
 
 # vim: set noet sw=4 ts=4:
diff --git a/liblangtag/liblangtag-0.4.0-windows.patch b/liblangtag/liblangtag-0.4.0-windows.patch
index 30b3a0c..1f2e6d8 100644
--- a/liblangtag/liblangtag-0.4.0-windows.patch
+++ b/liblangtag/liblangtag-0.4.0-windows.patch
@@ -120,7 +120,7 @@
 +{
 +       lt_return_val_if_fail (v != NULL, 0);
 +
-+       return (int)InterlockedAdd((LONG*)v, 0);
++       return (int)InterlockedExchangeAdd((LONG*)v, 0);
 +}
 +
 +LT_INLINE_FUNC int
@@ -128,7 +128,7 @@
 +{
 +       lt_return_val_if_fail (v != NULL, 0);
 +
-+       return (int)InterlockedAdd((LONG*)v, 1);
++       return (int)InterlockedExchangeAdd((LONG*)v, 1) + 1;
 +}
 +
 +lt_bool_t
@@ -136,7 +136,7 @@
 +{
 +       lt_return_val_if_fail (v != NULL, FALSE);
 +
-+       return 1 == InterlockedAdd((LONG*)v, -1);
++       return 1 == InterlockedExchangeAdd((LONG*)v, -1) - 1;
 +}
 +
 +


More information about the Libreoffice-commits mailing list