git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5362
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#else
// no stdcall under Unix nor Win16
#define wxCALLBACK
#else
// no stdcall under Unix nor Win16
#define wxCALLBACK
#endif // platform
// callling convention for the qsort(3) callback
#endif // platform
// callling convention for the qsort(3) callback
#define FAR _far
#endif
#endif // no FAR
#define FAR _far
#endif
#endif // no FAR
+#else // Win32
+ #define FAR
#endif // Win16/32
#endif // MSW
#endif // Win16/32
#endif // MSW
-#if defined(__GNUWIN32__)
- //BJ : FIXME? I have the second implementation in 2.95. Does it work with other versions?
- // #define wxFONTENUMPROC int(*)(ENUMLOGFONTEX *, NEWTEXTMETRICEX*, int, LPARAM)
- #define wxFONTENUMPROC int(*)(const LOGFONTA *, const TEXTMETRICA *, long unsigned 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
#else
#define wxFONTENUMPROC FONTENUMPROC
#endif