if ( !stream.Read(buf, WXSIZEOF(buf)) )
return false;
- if (stream.SeekI(-(wxFileOffset)WXSIZEOF(buf), wxFromCurrent) == wxInvalidOffset)
- return false;
-
return memcmp(buf, "/* XPM */", WXSIZEOF(buf)) == 0;
}
static const char *ParseColor(const char *data)
{
- static const char *targets[] =
+ static const char *const targets[] =
{"c ", "g ", "g4 ", "m ", "b ", "s ", NULL};
const char *p, *r;