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

Fix windows linking of i18npool

Change-Id: I9e66d0528a8b095897e27216352979c4bcfb4eae
üst 4c1c61ce
......@@ -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:
......@@ -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;
+}
+
+
......
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