Kaydet (Commit) 78829395 authored tarafından Luboš Luňák's avatar Luboš Luňák

put #ifdef around Unix specific code

Why do I still get surprised about things like code in vcl/generic/
not being generic at all?

Change-Id: I562e06fec0dc7b8ad0aacdba594921a8209d60ed
üst 38115435
...@@ -11,10 +11,13 @@ ...@@ -11,10 +11,13 @@
#include <osl/file.hxx> #include <osl/file.hxx>
#include <rtl/bootstrap.hxx> #include <rtl/bootstrap.hxx>
#include <vcl/fontmanager.hxx>
#include <vcl/svapp.hxx> #include <vcl/svapp.hxx>
#include <vcl/outdev.hxx> #include <vcl/outdev.hxx>
#if defined(UNX)
#include <vcl/fontmanager.hxx>
#endif
using namespace std; using namespace std;
void EmbeddedFontsHelper::clearTemporaryFontFiles() void EmbeddedFontsHelper::clearTemporaryFontFiles()
...@@ -60,6 +63,7 @@ OUString EmbeddedFontsHelper::fontFileUrl( const OUString& familyName, FontFamil ...@@ -60,6 +63,7 @@ OUString EmbeddedFontsHelper::fontFileUrl( const OUString& familyName, FontFamil
FontWeight weight, FontPitch pitch, rtl_TextEncoding ) FontWeight weight, FontPitch pitch, rtl_TextEncoding )
{ {
OUString url; OUString url;
#if defined(UNX)
psp::PrintFontManager& mgr = psp::PrintFontManager::get(); psp::PrintFontManager& mgr = psp::PrintFontManager::get();
list< psp::fontID > fontIds; list< psp::fontID > fontIds;
mgr.getFontList( fontIds ); mgr.getFontList( fontIds );
...@@ -98,6 +102,13 @@ OUString EmbeddedFontsHelper::fontFileUrl( const OUString& familyName, FontFamil ...@@ -98,6 +102,13 @@ OUString EmbeddedFontsHelper::fontFileUrl( const OUString& familyName, FontFamil
} }
} }
} }
#else
(void) familyName;
(void) family;
(void) italic;
(void) weight;
(void) pitch;
#endif
return url; return url;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment