Bug 1153909 - Use two-argument wcstok variant on mingw. r=jimm

This commit is contained in:
Jacek Caban
2015-04-14 18:07:25 +02:00
parent e391f20e7d
commit 20ccc435e2

View File

@@ -116,7 +116,7 @@ TranslateVersionStr(const WCHAR* szVersion, verBlock *vbVersion)
szJavaBuild[0] = '.'; szJavaBuild[0] = '.';
} }
#if defined(_MSC_VER) && _MSC_VER < 1900 #if (defined(_MSC_VER) && _MSC_VER < 1900) || defined(__MINGW32__)
// MSVC 2013 and earlier provided only a non-standard two-argument variant of // MSVC 2013 and earlier provided only a non-standard two-argument variant of
// wcstok that is generally not thread-safe. For our purposes here, it works // wcstok that is generally not thread-safe. For our purposes here, it works
// fine, though. // fine, though.