return TRUE;
}
-#ifdef __GNUWIN32_OLD__
- #define wxFONTENUMPROC int(*)(ENUMLOGFONTEX *, NEWTEXTMETRICEX*, int, LPARAM)
+#if defined(__GNUWIN32__)
+ #if defined(__MINGW32__) && ((__GNUC__>2) ||((__GNUC__==2) && (__GNUC_MINOR__>=95)))
+ #define wxFONTENUMPROC int(*)(const LOGFONTA *, const TEXTMETRICA *, long unsigned int, LPARAM)
+ #else
+ #define wxFONTENUMPROC int(*)(ENUMLOGFONTEX *, NEWTEXTMETRICEX*, int, LPARAM)
+ #endif
#else
#define wxFONTENUMPROC FONTENUMPROC
#endif
(LPARAM)this, 0 /* reserved */) ;
#else // Win16
::EnumFonts(hDC, (LPTSTR)NULL, (FONTENUMPROC)wxFontEnumeratorProc,
- (LPARAM) (void*) this) ;
+ #ifdef STRICT
+ (LPARAM)
+ #else
+ (LPSTR)
+ #endif
+ this);
#endif // Win32/16
::ReleaseDC(NULL, hDC);