From 4a1523f60ab0b1a707e147c41dcfc2a421007a8c Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Sun, 4 Dec 2016 05:28:26 -0800 Subject: [PATCH] make tga load function static to avoid link errors on multiple instances --- stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index 1e4c23c..6246eb0 100644 --- a/stb_image.h +++ b/stb_image.h @@ -5330,7 +5330,7 @@ errorEnd: } // read 16bit value and convert to 24bit RGB -void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out) +static void stbi__tga_read_rgb16(stbi__context *s, stbi_uc* out) { stbi__uint16 px = stbi__get16le(s); stbi__uint16 fiveBitMask = 31;