// ---------------------------------------------------------------------------
#if defined(__GNUWIN32__) && !defined(wxUSE_NORLANDER_HEADERS)
+#ifndef ZeroMemory
inline void ZeroMemory(void *buf, size_t len) { memset(buf, 0, len); }
+#endif
#endif // old mingw32
// this defines a CASTWNDPROC macro which casts a pointer to the type of a
#define ENDSESSION_LOGOFF 0x80000000
#endif
-// ---------------------------------------------------------------------------
-// debug messages
-// ---------------------------------------------------------------------------
-#if defined(__WIN95__) && defined(__WXDEBUG__) && wxUSE_DBWIN32
-
- #ifndef __TWIN32__
- #ifdef OutputDebugString
- #undef OutputDebugString
- #endif
-
- #define OutputDebugString OutputDebugStringW95
- #endif // __TWIN32__
-
- extern void OutputDebugStringW95(const wxChar*, ...);
-#endif // USE_DBWIN32
-
// ---------------------------------------------------------------------------
// useful macros and functions
// ---------------------------------------------------------------------------
// a wrapper macro for ZeroMemory()
+#ifdef __WIN32__
#define wxZeroMemory(obj) ::ZeroMemory(&obj, sizeof(obj))
+#else
+#define wxZeroMemory(obj) memset((void*) & obj, 0, sizeof(obj))
+#endif
+
+#include <wx/gdicmn.h>
// make conversion from wxColour and COLORREF a bit less painful
inline COLORREF wxColourToRGB(const wxColour& c)