summaryrefslogtreecommitdiffstats
path: root/config.tests/unix/libpng/libpng.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'config.tests/unix/libpng/libpng.cpp')
-rw-r--r--config.tests/unix/libpng/libpng.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/config.tests/unix/libpng/libpng.cpp b/config.tests/unix/libpng/libpng.cpp
new file mode 100644
index 0000000..7a3f2a7
--- /dev/null
+++ b/config.tests/unix/libpng/libpng.cpp
@@ -0,0 +1,12 @@
+#include <png.h>
+
+#if !defined(PNG_LIBPNG_VER) || PNG_LIBPNG_VER < 10017
+# error "Required libpng version 1.0.17 not found."
+#endif
+
+int main(int, char **)
+{
+ png_structp png_ptr;
+ png_ptr = png_create_read_struct(PNG_LIBPNG_VER_STRING,0,0,0);
+ return 0;
+}