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@redhat.com>
This commit is contained in:
Stephan Bergmann 2020-08-04 14:34:49 +02:00
parent f2a18401f9
commit 72f01ff8da
2 changed files with 12 additions and 0 deletions

View file

@ -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:

11
external/libgpg-error/clang-cl.patch vendored Normal file
View file

@ -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__)