sfx2/source/doc/syspathw32.cxx | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-)
New commits: commit 26448d4bb94c77fa431daed940260f2636c7c218 Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Mar 24 11:15:30 2017 +0100 Just include sal/types.h nowadays Change-Id: Ic8f6322854ff0ac25c34cd9286545c8aaa27d03b Reviewed-on: https://gerrit.libreoffice.org/35628 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/sfx2/source/doc/syspathw32.cxx b/sfx2/source/doc/syspathw32.cxx index ad0e244660a7..c190a7e159bd 100644 --- a/sfx2/source/doc/syspathw32.cxx +++ b/sfx2/source/doc/syspathw32.cxx @@ -17,6 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <sal/types.h> #ifdef _WIN32 #ifdef _MSC_VER @@ -55,18 +58,6 @@ static bool SHGetSpecialFolderW32( int nFolderID, WCHAR* pszFolder, int nSize ) #endif -// Copied from sal/types.h to circumvent problems with precompiled headers -// and redefinitions of BOOL, INT32 and other types. Unfortunately tools -// also define these type incompatible with Win32 types which leads from -// time to very nasty compilation errors. If someone finds a better -// way to solve these probs please remove this copied part! -typedef unsigned short sal_uInt16; -#if defined(_WIN32) - typedef wchar_t sal_Unicode; -#else - typedef sal_uInt16 sal_Unicode; -#endif - bool GetUserTemplateLocation(sal_Unicode* pFolder, int nSize) { #ifdef _WIN32 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits