#ifndef _WX_FONTDLG_H_BASE_
#define _WX_FONTDLG_H_BASE_
+#if wxUSE_FONTDLG
+
#if defined(__WXMSW__)
#include "wx/msw/fontdlg.h"
#elif defined(__WXMOTIF__)
# define wxFontDialog wxGenericFontDialog
# define sm_classwxFontDialog sm_classwxGenericFontDialog
#elif defined(__WXPM__)
-#include "wx/generic/fontdlgg.h"
-# define wxFontDialog wxGenericFontDialog
-# define sm_classwxFontDialog sm_classwxGenericFontDialog
+#include "wx/os2/fontdlg.h"
#elif defined(__WXSTUBS__)
#include "wx/generic/fontdlgg.h"
# define wxFontDialog wxGenericFontDialog
# define sm_classwxFontDialog sm_classwxGenericFontDialog
#endif
+#endif // wxUSE_FONTDLG
+
#endif
// _WX_FONTDLG_H_BASE_