From 893ef013b27bbc3706ab02074de40eb1c2c0b73e Mon Sep 17 00:00:00 2001 From: Ronny Chevalier Date: Thu, 17 Jul 2014 14:43:08 +0200 Subject: [PATCH] stb_image: fix undefined preprocessor definition --- stb_image.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stb_image.h b/stb_image.h index d4b85d1..39aa910 100644 --- a/stb_image.h +++ b/stb_image.h @@ -577,7 +577,7 @@ static unsigned char *stbi_load_main(stbi__context *s, int *x, int *y, int *comp FILE *stbi__fopen(char const *filename, char const *mode) { FILE *f; -#if _MSC_VER >= 1400 +#if defined(_MSC_VER) && _MSC_VER >= 1400 if (0 != fopen_s(&f, filename, "rb")) f=0; #else