gd_filename.c (libgd-2.3.2) | : | gd_filename.c (libgd-2.3.3) | ||
---|---|---|---|---|
skipping to change at line 88 | skipping to change at line 88 | |||
#endif | #endif | |||
#ifdef HAVE_LIBWEBP | #ifdef HAVE_LIBWEBP | |||
{".webp", gdImageCreateFromWebp, gdImageWebp, NULL}, | {".webp", gdImageCreateFromWebp, gdImageWebp, NULL}, | |||
#endif | #endif | |||
#ifdef HAVE_LIBXPM | #ifdef HAVE_LIBXPM | |||
{".xpm", NULL, NULL, gdImageCreateFromXpm}, | {".xpm", NULL, NULL, gdImageCreateFromXpm}, | |||
#endif | #endif | |||
{NULL, NULL, NULL} | {NULL, NULL, NULL, NULL} | |||
}; | }; | |||
static const struct FileType * | static const struct FileType * | |||
ftype(const char *filename) { | ftype(const char *filename) { | |||
int n; | int n; | |||
char *ext; | char *ext; | |||
/* Find the file extension (i.e. the last period in the string. */ | /* Find the file extension (i.e. the last period in the string. */ | |||
ext = strrchr(filename, '.'); | ext = strrchr(filename, '.'); | |||
if (!ext) return NULL; | if (!ext) return NULL; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |