* in this Software without prior written authorization from GROUPE BULL.
*/
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "xpmdecod.h"
#endif
return TRUE;
}
- name = wxStrdup(inname);
+ name = strdup(inname);
// theRGBRecords[] has no names with spaces, and no grey, but a
// lot of gray...
{
if ( *r != *q )
continue;
- if ( !wxIsspace((int) (*(r - 1))) )
+ if ( !isspace((int) (*(r - 1))) )
continue;
p = r;
for (;;)
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
{