8279d89d6e
...since1bb0e17712
"Fix autoconf>=2.70 gcc-wrapper breakage", which had the side effect of preventing various deprecated function declarations in system headers (e.g., isascii in addition to __isascii). This went unnoticed so far due to the traditionally lax handling of missing function declarations in C, and only now started to cause > conversion.c(94,9): error: call to undeclared function 'isascii'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] > if ((isascii (*istr) && isprint (*istr)) || (*istr >= 0x80)) > ^ etc. with clang-cl 15 trunk after <7d644e1215
> "[C11/C2x] Change the behavior of the implicit function declaration warning". Where undeclared functions have been used in Windows-only code, they have been replaced with their __STDC__-declared counterparts, and for occurrences in shared code Windows-only macro definitions have been introduced (as would have done in the system headers too, if __STDC__ was not defined) to not clutter the shared code with #ifdefs. Also, for getpid (resp. _getpid), the #include <process.h> was apparently missing from the upstream code, even without our __STDC__ hack in external/libassuan/ExternalProject_libassuan.mk (but never caused errors until now, either). Change-Id: I7442394d0c6e633bca1f6c7331d7ee51651179a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133339 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
25 lines
943 B
Makefile
25 lines
943 B
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#
|
|
# This file is part of the LibreOffice project.
|
|
#
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
#
|
|
|
|
$(eval $(call gb_UnpackedTarball_UnpackedTarball,libassuan))
|
|
|
|
$(eval $(call gb_UnpackedTarball_set_tarball,libassuan,$(LIBASSUAN_TARBALL)))
|
|
|
|
$(eval $(call gb_UnpackedTarball_set_patchlevel,libassuan,0))
|
|
|
|
$(eval $(call gb_UnpackedTarball_add_patches,libassuan, \
|
|
external/libassuan/find-libgpg-error.patch \
|
|
external/libassuan/fix-autoconf-macros.patch \
|
|
$(if $(filter MSC,$(COM)),external/libassuan/w32-build-fixes.patch.1) \
|
|
external/libassuan/w32-build-fixes-2.patch \
|
|
$(if $(filter LINUX,$(OS)),external/libassuan/rpath.patch) \
|
|
external/libassuan/w32-stdc.patch \
|
|
))
|
|
|
|
# vim: set noet sw=4 ts=4:
|