This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository legacy-imlib2.

View the commit online.

commit 5bf590ae7b4f58cf8bdd5c61aae8086c371fce5e
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Mon Mar 20 20:14:26 2023 +0100

    test_load: Add some missing ifdefs
---
 test/test_load.cpp   | 15 ++++++++++++++-
 test/test_load_2.cpp | 12 ++++++++++++
 2 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/test/test_load.cpp b/test/test_load.cpp
index 2f8b970..1ba957f 100644
--- a/test/test_load.cpp
+++ b/test/test_load.cpp
@@ -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*))
 
diff --git a/test/test_load_2.cpp b/test/test_load_2.cpp
index eaf839a..30380ab 100644
--- a/test/test_load_2.cpp
+++ b/test/test_load_2.cpp
@@ -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 },
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to