[Libreoffice-commits] core.git: external/libgpg-error

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Wed Aug 5 07:50:07 UTC 2020


 external/libgpg-error/UnpackedTarball_libgpg-error.mk |    1 +
 external/libgpg-error/clang-cl.patch                  |   11 +++++++++++
 2 files changed, 12 insertions(+)

New commits:
commit 72f01ff8da8ffaad50eebc49182e49dee2aa5877
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Tue Aug 4 14:34:49 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Wed Aug 5 09:49:25 2020 +0200

    external/libgpg-error: -Werror,-Wundef (clang-cl)
    
    Change-Id: I7e71411901cc2c09b5d13a5ca451f1981e8a9e44
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100090
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>

diff --git a/external/libgpg-error/UnpackedTarball_libgpg-error.mk b/external/libgpg-error/UnpackedTarball_libgpg-error.mk
index af74bb1d07c3..72ff13069c76 100644
--- a/external/libgpg-error/UnpackedTarball_libgpg-error.mk
+++ b/external/libgpg-error/UnpackedTarball_libgpg-error.mk
@@ -21,6 +21,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,libgpg-error, \
 	external/libgpg-error/w32-build-fixes-4.patch \
 	$(if $(filter MSC,$(COM)),external/libgpg-error/w32-build-fixes-5.patch) \
 	$(if $(filter LINUX,$(OS)),external/libgpg-error/libgpgerror-bundled-soname.patch.1) \
+	external/libgpg-error/clang-cl.patch \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/libgpg-error/clang-cl.patch b/external/libgpg-error/clang-cl.patch
new file mode 100644
index 000000000000..3a635c5d8990
--- /dev/null
+++ b/external/libgpg-error/clang-cl.patch
@@ -0,0 +1,11 @@
+--- src/gpg-error.h.in
++++ src/gpg-error.h.in
+@@ -152,7 +152,7 @@
+ /*
+  * GCC feature test.
+  */
+-#if __GNUC__
++#ifdef __GNUC__
+ # define _GPG_ERR_GCC_VERSION (__GNUC__ * 10000 \
+                                + __GNUC_MINOR__ * 100 \
+                                + __GNUC_PATCHLEVEL__)


More information about the Libreoffice-commits mailing list