#include <stdio.h>
#include <stdlib.h>
-#if !defined(__MWERKS__)
- #include <memory.h>
-#endif
+#include <memory.h>
#include "wx/msw/dib.h"
wxPalette *wxDIB::CreatePalette() const
{
// GetDIBColorTable not available in eVC3
-#if defined(_WIN32_WCE) && _WIN32_WCE < 400
+#if !defined(__WXMSW__) || defined(_WIN32_WCE) && _WIN32_WCE < 400
return NULL;
#else
wxCHECK_MSG( m_handle, NULL, wxT("wxDIB::CreatePalette(): invalid object") );