diff options
author | Michael Stahl <mstahl@redhat.com> | 2015-09-03 11:19:23 +0200 |
---|---|---|
committer | David Ostrovsky <david@ostrovsky.org> | 2015-09-03 10:52:18 +0000 |
commit | 20348de1d5ce4ded0b6c71fcc927ec4e007d61e7 (patch) | |
tree | d6fd7a21f5d19995c418f19098c00876b038a7f4 /sal/systools/win32/uwinapi/legacy.c | |
parent | 089d7f53ea232972961c14706a54187f075fa973 (diff) |
sal: actually export the legacy function for VS 2015
Change-Id: I29e43f865133b030bbe76d5a9fe90c978228ed96
Reviewed-on: https://gerrit.libreoffice.org/18294
Reviewed-by: David Ostrovsky <david@ostrovsky.org>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sal/systools/win32/uwinapi/legacy.c')
-rw-r--r-- | sal/systools/win32/uwinapi/legacy.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sal/systools/win32/uwinapi/legacy.c b/sal/systools/win32/uwinapi/legacy.c index b789c07bbb8d..9ba73b27f6c8 100644 --- a/sal/systools/win32/uwinapi/legacy.c +++ b/sal/systools/win32/uwinapi/legacy.c @@ -14,6 +14,10 @@ #pragma warning(disable:4273) // inconsistent dll linkage #endif +#if defined(_MSC_VER) && (_MSC_VER >= 1900) +// older versions use uwinapi.def file for export +SAL_DLLPUBLIC_EXPORT +#endif DWORD WINAPI GetShortPathNameW(LPCWSTR lpszLongPath,LPWSTR lpszShortPath,DWORD cchBuffer) { typedef DWORD (WINAPI * GetShortPathNameW_t) (LPCWSTR,LPWSTR,DWORD); |