# HG changeset patch # User Matti Hamalainen # Date 1425316463 -7200 # Node ID f88ad5cb44e52e43385911084d6fb867fb0199dc # Parent dec84b805399f2a052792fbb93114a420ecc0ed0 Silence a warning. diff -r dec84b805399 -r f88ad5cb44e5 src/stb_image.c --- 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);