]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/fontmap.h
corrected conditional include
[wxWidgets.git] / include / wx / fontmap.h
index 920733ed35b11c6d3684d27042d01616c8550843..9331241a2ac3d3a43b14aa79eadda4c46c3cd252 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
+#if wxUSE_FONTMAP
+
 #include "wx/fontenc.h"         // for wxFontEncoding
 
+#if wxUSE_GUI
+    #include "wx/fontutil.h"    // for wxNativeEncodingInfo
+#endif // wxUSE_GUI
+
 #if wxUSE_CONFIG
     class WXDLLEXPORT wxConfigBase;
 #endif // wxUSE_CONFIG
@@ -182,4 +188,6 @@ protected:
 // the default font mapper for wxWindows programs
 WXDLLEXPORT_DATA(extern wxFontMapper *) wxTheFontMapper;
 
+#endif // wxUSE_FONTMAP
+
 #endif // _WX_FONTMAPPER_H_