0c9ddb24ee
Make the workaround in snprintf.h conditional on older MSVC version. Investigation reveals that the GetShortPathNameW is presumably used by legacy Duden extension that was built by Sun in a setsolar environment. The uwinapi.lib was never part of the SDK, so ordinary extensions cannot link against it. The PRIVATE export of the symbol that is only possible with DEF file therefore does not matter much. With VC2015 there is no need for LO code to use uwinapi.dll at all and gb_UWINAPI can be unset in this case. Change-Id: I23a5636db9431b0fa4350b665a6a69613d625264 Reviewed-on: https://gerrit.libreoffice.org/16677 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
49 lines
1 KiB
Makefile
49 lines
1 KiB
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_Library_Library,uwinapi))
|
|
|
|
$(eval $(call gb_Library_use_system_win32_libs,uwinapi,\
|
|
$(if $(filter $(COM),MSC), \
|
|
kernel32 \
|
|
msvcrt \
|
|
shlwapi \
|
|
user32 \
|
|
version \
|
|
) \
|
|
))
|
|
|
|
$(eval $(call gb_Library_add_defs,uwinapi,\
|
|
$(if $(filter $(COM),GCC), \
|
|
-Wno-unused-parameter -Wno-return-type) \
|
|
$(LFS_CFLAGS) \
|
|
))
|
|
|
|
$(eval $(call gb_Library_add_cobjects,uwinapi,\
|
|
sal/systools/win32/uwinapi/snprintf \
|
|
sal/systools/win32/uwinapi/snwprintf \
|
|
))
|
|
|
|
ifeq ($(COM),MSC)
|
|
|
|
$(eval $(call gb_Library_add_cobjects,uwinapi,\
|
|
sal/systools/win32/uwinapi/legacy \
|
|
))
|
|
|
|
ifeq ($(VCVER),120)
|
|
$(eval $(call gb_Library_add_ldflags,uwinapi,\
|
|
/DEF:$(SRCDIR)/sal/systools/win32/uwinapi/uwinapi.def \
|
|
))
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
# vim: set noet sw=4 ts=4:
|