-Werror,-Wundef (clang-cl)

Change-Id: Ie63408ddd3216b9012530f65f93c98cf04f0deca
Reviewed-on: https://gerrit.libreoffice.org/46197
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2017-12-10 23:08:13 +01:00
parent cc91ea2ce8
commit a0d4ebae69
2 changed files with 12 additions and 0 deletions

View file

@ -20,6 +20,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,libgpg-error, \
$(if $(filter MSC,$(COM)),external/libgpg-error/w32-build-fixes-3.patch.1) \
$(if $(filter MSC,$(COM)),external/libgpg-error/w32-disable-dllinit.patch.1) \
external/libgpg-error/w32-build-fixes-4.patch \
external/libgpg-error/clang-cl.patch \
))
# vim: set noet sw=4 ts=4:

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

@ -0,0 +1,11 @@
--- src/gpg-error.h.in
+++ src/gpg-error.h.in
@@ -141,7 +141,7 @@
/* GCC feature test. */
-#if __GNUC__
+#if defined __GNUC__
# define _GPG_ERR_GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)