diff options
author | Pierre Joye <pierre.php@gmail.com> | 2013-05-03 09:08:47 +0200 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2013-05-03 09:08:47 +0200 |
commit | ba8f21afb5fb3a35aa32f9700bfc2527b2c888a3 (patch) | |
tree | 2aa69cd13e8248b6b2206f30204327a613a0d7c9 | |
parent | bd3fb8cd3730f2e4c267c437544918354ae4bae4 (diff) | |
download | libgd-ba8f21afb5fb3a35aa32f9700bfc2527b2c888a3.tar.gz |
skip if jpeg version >= 8
-rw-r--r-- | tests/jpeg/jpeg_read.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/jpeg/jpeg_read.c b/tests/jpeg/jpeg_read.c index 7a29401..26edb55 100644 --- a/tests/jpeg/jpeg_read.c +++ b/tests/jpeg/jpeg_read.c @@ -3,6 +3,7 @@ #include <stdio.h> #include <stdlib.h> #include "gdtest.h" +#include <jpeglib.h> #ifdef _MSC_VER # define snprintf _snprintf @@ -14,6 +15,10 @@ int main() FILE *fp; char path[1024]; +#if defined(JPEG_LIB_VERSION_MAJOR) && JPEG_LIB_VERSION_MAJOR >= 8 + printf("skip, JPEG Major version too high (%i)\n", JPEG_LIB_VERSION_MAJOR); + return 0; +#else snprintf(path, sizeof(path)-1, "%s/jpeg/conv_test.jpeg", GDTEST_TOP_DIR); fp = fopen(path, "rb"); if (!fp) { @@ -36,4 +41,5 @@ int main() } return 0; +#endif } |