From ea822495b776a8b0b9d6b99299fdbc7bfc8db340 Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 21 Apr 2012 13:26:30 +0200 Subject: Partially revert: "Replace css macro with namespace for nicer namespacing" To fix the build. I can't test it on win32, thought it would work... --- .../source/win32/filepicker/IVistaFilePickerInternalNotify.hxx | 8 +++++++- fpicker/source/win32/filepicker/vistatypes.h | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'fpicker') diff --git a/fpicker/source/win32/filepicker/IVistaFilePickerInternalNotify.hxx b/fpicker/source/win32/filepicker/IVistaFilePickerInternalNotify.hxx index ca1b223f745c..47909d7953c9 100644 --- a/fpicker/source/win32/filepicker/IVistaFilePickerInternalNotify.hxx +++ b/fpicker/source/win32/filepicker/IVistaFilePickerInternalNotify.hxx @@ -45,7 +45,11 @@ // namespace //----------------------------------------------------------------------------- -namespace css = ::com::sun::star; +#ifdef css + #error "Clash on using CSS as namespace define." +#else + #define css ::com::sun::star +#endif namespace fpicker{ namespace win32{ @@ -69,6 +73,8 @@ class IVistaFilePickerInternalNotify }}} +#undef css + #endif // FPICKER_WIN32_VISTA_FILEPICKER_INTERNALNOTIFY_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/fpicker/source/win32/filepicker/vistatypes.h b/fpicker/source/win32/filepicker/vistatypes.h index e1b1fc580923..08b4613f6d25 100644 --- a/fpicker/source/win32/filepicker/vistatypes.h +++ b/fpicker/source/win32/filepicker/vistatypes.h @@ -40,7 +40,11 @@ // namespace //----------------------------------------------------------------------------- -namespace css = ::com::sun::star; +#ifdef css + #error "Clash on using CSS as namespace define." +#else + #define css ::com::sun::star +#endif namespace fpicker{ namespace win32{ @@ -60,6 +64,8 @@ typedef ComPtr< IFileDialogCustomize, IID_IFileDialogCustomize } // namespace win32 } // namespace fpicker +#undef css + #endif // FPICKER_WIN32_VISTA_TYPES_HXX /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit