summaryrefslogtreecommitdiff
path: root/example.c
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@acm.org>2011-12-24 09:12:00 -0600
committerGlenn Randers-Pehrson <glennrp at users.sourceforge.net>2011-12-24 09:12:00 -0600
commit5d56786eff3d367c8315b4f4d4c9d6fb02751b0e (patch)
tree6e2ebfea6de35727bcc852da13fea2bd5b2ced1e /example.c
parentd7c22fb7ecfe0d533fc8f1783627803db07aab5e (diff)
downloadlibpng-5d56786eff3d367c8315b4f4d4c9d6fb02751b0e.tar.gz
[libpng16] Implemented 'restrict' for png_info and png_struct.
Added new "png_structrp" typedef. Because of the way libpng works both png_info and png_struct are always accessed via a single pointer. This means adding C99 'restrict' to the pointer gives the compiler some opportunity to optimize the code. This change allows that.
Diffstat (limited to 'example.c')
-rw-r--r--example.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/example.c b/example.c
index f3315d8e9..015a0aaa1 100644
--- a/example.c
+++ b/example.c
@@ -39,6 +39,7 @@
#include <string.h>
#include <stdio.h>
#include <png.h>
+#include <zlib.h>
int main(int argc, const char **argv)
{