diff options
author | David Ostrovsky <david@ostrovsky.org> | 2015-07-02 08:06:07 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2015-09-02 20:40:21 +0000 |
commit | 0c9ddb24ee0388d03c313caf5a45f1aa26049781 (patch) | |
tree | e91e799f21aa940e80bf8f59733ec6f7e6efc37b /solenv | |
parent | ed7d22049596ac91ad75bfad1a5675c13714e203 (diff) |
Don't redefine snprintf as VS 2015 supports ISO standard
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>
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/gbuild/platform/windows.mk | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/solenv/gbuild/platform/windows.mk b/solenv/gbuild/platform/windows.mk index ea0e476ec456..a2e621d67215 100644 --- a/solenv/gbuild/platform/windows.mk +++ b/solenv/gbuild/platform/windows.mk @@ -32,8 +32,15 @@ gb_OSDEFS := \ -DWNT \ -DNOMINMAX \ + +gb_UWINAPI := + +ifeq ($(VCVER),120) + gb_UWINAPI := uwinapi +endif + gb_Executable_LAYER := \ $(foreach exe,$(gb_Executable_UREBIN),$(exe):UREBIN) \ $(foreach exe,$(gb_Executable_SDK),$(exe):SDKBIN) \ |