X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c801d85f158c4cba50b588807daabdcbd0ed3853..77436c4cbac2269e564dc4fcf4494a58feca0af4:/include/wx/fontdlg.h diff --git a/include/wx/fontdlg.h b/include/wx/fontdlg.h index ca180e0bfe..88205f033f 100644 --- a/include/wx/fontdlg.h +++ b/include/wx/fontdlg.h @@ -1,13 +1,21 @@ -#ifndef __FONTDLGH_BASE__ -#define __FONTDLGH_BASE__ - -#if defined(__WINDOWS__) -#include "wx/msw/fontdlg.h" -#elif defined(__MOTIF__) -#include "wx/generic/fontdlgg.h" -#elif defined(__GTK__) -#include "wx/generic/fontdlgg.h" +#ifndef _WX_FONTDLG_H_BASE_ +#define _WX_FONTDLG_H_BASE_ + +#if wxUSE_FONTDLG + +#if defined(__WXUNIVERSAL__) || defined(__WXMOTIF__) || defined(__WXMAC__) +# include "wx/generic/fontdlgg.h" +# define wxFontDialog wxGenericFontDialog +# define sm_classwxFontDialog sm_classwxGenericFontDialog +#elif defined(__WXMSW__) +# include "wx/msw/fontdlg.h" +#elif defined(__WXGTK__) +# include "wx/gtk/fontdlg.h" +#elif defined(__WXPM__) +# include "wx/os2/fontdlg.h" #endif +#endif // wxUSE_FONTDLG + #endif - // __FONTDLGH_BASE__ + // _WX_FONTDLG_H_BASE_