浏览代码

stb_image: fix undefined preprocessor definition

Ronny Chevalier 11 年之前
父节点
当前提交
893ef013b2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      stb_image.h

+ 1 - 1
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