* in this Software without prior written authorization from GROUPE BULL.
*/
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "xpmdecod.h"
#endif
#include "wx/xpmdecod.h"
-#ifdef __WXWINCE__
-char* strdup(const char* s)
-{
- char* s2 = new char[strlen(s)];
- strcpy(s2, s);
- return s2;
-}
-
-bool isspace(char c)
-{
- return (c == ' ');
-}
-#endif
-
#if wxUSE_STREAMS
bool wxXPMDecoder::CanRead(wxInputStream& stream)
{
if ( entry == end )
{
wxLogError(_("XPM: Malformed pixel data!"));
+
+ // better return right now as otherwise we risk to flood the
+ // user with error messages as something seems to be seriously
+ // wrong with the file and so we could give this message for
+ // each remaining pixel if we don't bail out
+ return wxNullImage;
}
else
{