test_load: Add some missing ifdefs

This commit is contained in:
Kim Woelders 2023-03-20 20:14:26 +01:00
parent 32901e3bab
commit 5bf590ae7b
2 changed files with 26 additions and 1 deletions

View File

@ -18,13 +18,16 @@ static const char *const pfxs[] = {
"argb",
"bmp",
"ff",
#ifdef BUILD_GIF_LOADER
"gif",
#endif
#ifdef BUILD_HEIF_LOADER
"heif",
#endif
"ico",
"jpg.mp3", // id3
#ifdef BUILD_JPEG_LOADER
"jpg",
#endif
#ifdef BUILD_J2K_LOADER
"jp2",
"j2k",
@ -33,7 +36,9 @@ static const char *const pfxs[] = {
"jxl",
#endif
"ilbm", // lbm
#ifdef BUILD_PNG_LOADER
"png",
#endif
"ppm", // pnm
"pgm", // pnm
"pbm", // pnm
@ -42,8 +47,12 @@ static const char *const pfxs[] = {
#ifdef BUILD_SVG_LOADER
"svg",
#endif
#ifdef BUILD_TIFF_LOADER
"tiff",
#endif
#ifdef BUILD_WEBP_LOADER
"webp",
#endif
"xbm",
"xpm",
#ifdef BUILD_BZ2_LOADER
@ -55,6 +64,10 @@ static const char *const pfxs[] = {
#ifdef BUILD_LZMA_LOADER
"ff.xz", // lzma
#endif
#ifdef BUILD_ID3_LOADER
"jpg.mp3", // id3
#endif
};
#define N_PFX (sizeof(pfxs) / sizeof(char*))

View File

@ -30,14 +30,20 @@ static tii_t tii[] = {
#ifdef BUILD_LZMA_LOADER
{ "icon-64.ff.xz", 1153555547 },
#endif
#ifdef BUILD_GIF_LOADER
{ "icon-64.gif", 4016720483 },
#endif
#ifdef BUILD_HEIF_LOADER
{ "icon-64.heif", 1346959048 },
#endif
{ "icon-64.ico", 1153555547 },
{ "icon-64.ilbm", 1153555547 },
#ifdef BUILD_JPEG_LOADER
{ "icon-64.jpg", 4132154843 },
#endif
#ifdef BUILD_ID3_LOADER
{ "icon-64.jpg.mp3", 4132154843 },
#endif
#ifdef BUILD_J2K_LOADER
{ "icon-64.jp2", 451428725 },
{ "icon-64.j2k", 451428725 },
@ -51,8 +57,10 @@ static tii_t tii[] = {
#ifdef BUILD_JXL_LOADER
{ "icon-64.jxl", 2534597492 },
#endif
#ifdef BUILD_PNG_LOADER
{ "icon-64.png", 1153555547 },
{ "xeyes-gray.png", 3493264608 },
#endif
{ "icon-64.ppm", 1153555547 },
{ "icon-64.pgm", 140949526 },
{ "icon-64.pbm", 3936773892 },
@ -68,8 +76,12 @@ static tii_t tii[] = {
{ "xeyes-gray.pam", 1280677270 },
{ "xeyes-mono.pam", 17480910 },
{ "icon-64.tga", 1153555547 },
#ifdef BUILD_TIFF_LOADER
{ "icon-64.tiff", 1153555547 },
#endif
#ifdef BUILD_WEBP_LOADER
{ "icon-64.webp", 1698406918 },
#endif
{ "icon-64.xbm", 3936773892 },
{ "icon-64.xpm", 4016720483 },