changeset 1083:f88ad5cb44e5

Silence a warning.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 02 Mar 2015 19:14:23 +0200
parents dec84b805399
children 67f5c9d60c72
files src/stb_image.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/stb_image.c	Mon Mar 02 05:36:47 2015 +0200
+++ b/src/stb_image.c	Mon Mar 02 19:14:23 2015 +0200
@@ -3882,7 +3882,7 @@
             // if critical, fail
             if (first) return stbi__err("first not IHDR", "Corrupt PNG");
             if ((c.type & (1 << 29)) == 0) {
-               #ifndef STBI_NO_FAILURE_STRINGS
+               #if !defined(STBI_NO_FAILURE_STRINGS) && !defined(STBI_FAILURE_USERMSG)
                // not threadsafe
                static char invalid_chunk[] = "XXXX PNG chunk not known";
                invalid_chunk[0] = STBI__BYTECAST(c.type >> 24);