summaryrefslogtreecommitdiff
path: root/pngrio.c
diff options
context:
space:
mode:
authorGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2009-10-18 14:30:53 -0500
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2009-10-18 14:30:53 -0500
commit5d398a69fb38fef7bbbf538948acaa0435c8fbaa (patch)
treea5a80236a593d08da31eceb9bb25fca0cc4a592d /pngrio.c
parent4560de58f43d389d4d86098c7eab6150fac976b1 (diff)
downloadlibpng-5d398a69fb38fef7bbbf538948acaa0435c8fbaa.tar.gz
[master] Converted all PNG_NO_* tests to PNG_*_SUPPORTED
everywhere except pngconf.h as in libpng-1.4.0beta78 and later.
Diffstat (limited to 'pngrio.c')
-rw-r--r--pngrio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pngrio.c b/pngrio.c
index c49bdf3bf..dc09a6116 100644
--- a/pngrio.c
+++ b/pngrio.c
@@ -39,7 +39,7 @@ png_read_data(png_structp png_ptr, png_bytep data, png_size_t length)
png_error(png_ptr, "Call to NULL read function");
}
-#ifndef PNG_NO_STDIO
+#ifdef PNG_STDIO_SUPPORTED
/* This is the function that does the actual reading of data. If you are
* not reading from a standard C stream, you should create a replacement
* read_data function and use it at run time with png_set_read_fn(), rather
@@ -152,7 +152,7 @@ png_set_read_fn(png_structp png_ptr, png_voidp io_ptr,
return;
png_ptr->io_ptr = io_ptr;
-#ifndef PNG_NO_STDIO
+#ifdef PNG_STDIO_SUPPORTED
if (read_data_fn != NULL)
png_ptr->read_data_fn = read_data_fn;
else