[Libreoffice-commits] .: liblangtag/liblangtag-0.4.0-windows.patch
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Nov 9 05:58:33 PST 2012
liblangtag/liblangtag-0.4.0-windows.patch | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 8226caa2a5b8b8dd8e355a2abf84b5d84e899b3b
Author: Fridrich Å trba <fridrich.strba at bluewin.ch>
Date: Fri Nov 9 14:57:56 2012 +0100
This is a bit more elegant
Change-Id: I0f458caa1bda23882c76cbae414b738a5d04ab32
diff --git a/liblangtag/liblangtag-0.4.0-windows.patch b/liblangtag/liblangtag-0.4.0-windows.patch
index 270f280..ca87c37 100644
--- a/liblangtag/liblangtag-0.4.0-windows.patch
+++ b/liblangtag/liblangtag-0.4.0-windows.patch
@@ -58,7 +58,7 @@
+{
+ lt_return_val_if_fail (v != NULL, 0);
+
-+ return (int)InterlockedExchangeAdd((LONG*)v, 0);
++ return (int)InterlockedExchange((LONG*)v, (LONG)*v);
+}
+
+LT_INLINE_FUNC int
@@ -66,7 +66,7 @@
+{
+ lt_return_val_if_fail (v != NULL, 0);
+
-+ return (int)InterlockedExchangeAdd((LONG*)v, 1) + 1;
++ return (int)InterlockedIncrement((LONG*)v);
+}
+
+lt_bool_t
@@ -74,7 +74,7 @@
+{
+ lt_return_val_if_fail (v != NULL, FALSE);
+
-+ return 0 == (InterlockedExchangeAdd((LONG*)v, -1) - 1);
++ return !InterlockedDecrement((LONG*)v);
+}
+
+
More information about the Libreoffice-commits
mailing list