From b8b6e7c31a0a8826108124a5ec1ef0664199a16c Mon Sep 17 00:00:00 2001 From: Ronny Chevalier Date: Thu, 17 Jul 2014 14:44:11 +0200 Subject: [PATCH] stb_image: fix unused parameter --- stb_image.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stb_image.h b/stb_image.h index 39aa910..d21adca 100644 --- a/stb_image.h +++ b/stb_image.h @@ -578,10 +578,10 @@ FILE *stbi__fopen(char const *filename, char const *mode) { FILE *f; #if defined(_MSC_VER) && _MSC_VER >= 1400 - if (0 != fopen_s(&f, filename, "rb")) + if (0 != fopen_s(&f, filename, mode)) f=0; #else - f = fopen(filename, "rb"); + f = fopen(filename, mode); #endif return f; }