summaryrefslogtreecommitdiff
path: root/src/external
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-05-12 19:04:01 +0200
committerAldrik Ramaekers <aldrik.ramaekers@protonmail.com>2020-05-12 19:04:01 +0200
commita7f382b431e6eed3f180c71d4175970da096eab9 (patch)
tree0099dba56efe2eb24d82481ed6ea5294e7b4bfb9 /src/external
parentd4dbb9333666a2a0c752ecee49b4f70b8e4c1371 (diff)
work
Diffstat (limited to 'src/external')
-rw-r--r--src/external/stb_image.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/external/stb_image.h b/src/external/stb_image.h
index a6202a3..7a2d751 100644
--- a/src/external/stb_image.h
+++ b/src/external/stb_image.h
@@ -1476,6 +1476,7 @@ stbi_inline static stbi_uc stbi__get8(stbi__context *s)
return 0;
}
+#ifndef STBI_ONLY_PNG
stbi_inline static int stbi__at_eof(stbi__context *s)
{
if (s->io.read) {
@@ -1487,6 +1488,7 @@ stbi_inline static int stbi__at_eof(stbi__context *s)
return s->img_buffer >= s->img_buffer_end;
}
+#endif
static void stbi__skip(stbi__context *s, int n)
{