summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2019-01-15 00:09:27 -0500
committerMike Frysinger <vapier@gmail.com>2019-02-09 13:16:57 -0500
commita91cb62f0121fd88c913a88aaecd42876aa42618 (patch)
tree11d81897098b5f1e86bfcd51a8c22e560d2e5096 /tests
parent553702980ae89c83f2d6e254d62cf82e204956d0 (diff)
downloadlibgd-a91cb62f0121fd88c913a88aaecd42876aa42618.tar.gz
add stub ABI funcs when formats are disabled #345
We do this for some funcs already, so add jpeg/png/tiff/liq/webp stubs too. This keeps our ABI stable and lets code do runtime detection instead.
Diffstat (limited to 'tests')
-rw-r--r--tests/gdtest/gdtest.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/gdtest/gdtest.c b/tests/gdtest/gdtest.c
index 7c1fccc..9a9f2a5 100644
--- a/tests/gdtest/gdtest.c
+++ b/tests/gdtest/gdtest.c
@@ -40,7 +40,6 @@ void gdSilence(int priority, const char *format, va_list args)
(void)args;
}
-#ifdef HAVE_LIBPNG
gdImagePtr gdTestImageFromPng(const char *filename)
{
gdImagePtr image;
@@ -65,7 +64,6 @@ gdImagePtr gdTestImageFromPng(const char *filename)
fclose(fp);
return image;
}
-#endif
static char *tmpdir_base;
@@ -503,7 +501,6 @@ unsigned int gdMaxPixelDiff(gdImagePtr a, gdImagePtr b)
return diff;
}
-#ifdef HAVE_LIBPNG
int gdTestImageCompareToImage(const char* file, unsigned int line, const char* message,
gdImagePtr expected, gdImagePtr actual)
{
@@ -583,9 +580,7 @@ fail:
}
return 1;
}
-#endif
-#ifdef HAVE_LIBPNG
int gdTestImageCompareToFile(const char* file, unsigned int line, const char* message,
const char *expected_file, gdImagePtr actual)
{
@@ -603,7 +598,6 @@ int gdTestImageCompareToFile(const char* file, unsigned int line, const char* me
}
return res;
}
-#endif
static int failureCount = 0;