From 67789af11bda18f9f9d9d2cd2bb4cd9a42832b7f Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Fri, 30 Sep 2011 07:46:13 +0000 Subject: [PATCH] Fixing MinGW build. BUG=v8:1695 Review URL: http://codereview.chromium.org/8081015 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9488 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/d8.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d8.cc b/src/d8.cc index c58deb0b5..a516576fa 100644 --- a/src/d8.cc +++ b/src/d8.cc @@ -817,7 +817,7 @@ void Shell::OnExit() { static FILE* FOpen(const char* path, const char* mode) { -#if (defined(_WIN32) || defined(_WIN64)) +#if defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)) FILE* result; if (fopen_s(&result, path, mode) == 0) { return result; -- 2.34.1