summaryrefslogtreecommitdiff
path: root/Build/source/libs/libpng/config.h.in
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2011-12-20 16:05:28 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2011-12-20 16:05:28 +0000
commit79f2291eb9b49abd0c39190e56d893b61eada8f2 (patch)
treeabaee102571e03749ab1a228f9265e5bd41b077d /Build/source/libs/libpng/config.h.in
parentae9ca1e2640b2a90c0dbb695f95bc6c3d36d42e2 (diff)
libpng 1.5.7
git-svn-id: svn://tug.org/texlive/trunk@24888 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/libs/libpng/config.h.in')
-rw-r--r--Build/source/libs/libpng/config.h.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/libs/libpng/config.h.in b/Build/source/libs/libpng/config.h.in
index feb835c55a1..466673bf296 100644
--- a/Build/source/libs/libpng/config.h.in
+++ b/Build/source/libs/libpng/config.h.in
@@ -66,5 +66,19 @@
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
+/* Define to the equivalent of the C99 'restrict' keyword, or to
+ nothing if this is not supported. Do not define if restrict is
+ supported directly. */
+#undef restrict
+/* Work around a bug in Sun C++: it does not support _Restrict or
+ __restrict__, even though the corresponding Sun C compiler ends up with
+ "#define restrict _Restrict" or "#define restrict __restrict__" in the
+ previous line. Perhaps some future version of Sun C++ will work with
+ restrict; if so, hopefully it defines __RESTRICT like Sun C does. */
+#if defined __SUNPRO_CC && !defined __RESTRICT
+# define _Restrict
+# define __restrict__
+#endif
+
/* Define to `unsigned int' if <sys/types.h> does not define. */
#undef size_t