diff options
Diffstat (limited to 'include/vcl/sysdata.hxx')
-rw-r--r-- | include/vcl/sysdata.hxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/include/vcl/sysdata.hxx b/include/vcl/sysdata.hxx index a525f77fbbc8..57217df2fb57 100644 --- a/include/vcl/sysdata.hxx +++ b/include/vcl/sysdata.hxx @@ -23,6 +23,8 @@ #include <vector> #include <cstddef> +#include <config_cairo_canvas.h> + #ifdef MACOSX // predeclare the native classes to avoid header/include problems typedef struct CGContext *CGContextRef; @@ -200,13 +202,12 @@ struct SystemGlyphData int fallbacklevel; }; +#if ENABLE_CAIRO_CANVAS + struct SystemFontData { unsigned long nSize; // size in bytes of this structure -#if defined( WNT ) - HFONT hFont; // native font object -#elif defined( MACOSX ) -#elif defined( UNX ) +#if defined( UNX ) void* nFontId; // native font id int nFontFlags; // native font flags #endif @@ -217,10 +218,7 @@ struct SystemFontData SystemFontData() : nSize( sizeof( SystemFontData ) ) -#if defined( WNT ) - , hFont( 0 ) -#elif defined( MACOSX ) -#elif defined( UNX ) +#if defined( UNX ) , nFontId( NULL ) , nFontFlags( 0 ) #endif @@ -232,6 +230,8 @@ struct SystemFontData } }; +#endif // ENABLE_CAIRO_CANVAS + typedef std::vector<SystemGlyphData> SystemGlyphDataVector; struct SystemTextLayoutData |