Commit 15fce47e authored by cutealien's avatar cutealien

Needed a little more work to disable a warning once in a way such that it...

Needed a little more work to disable a warning once in a way such that it doesn't produce other warnings on other compilers.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@5214 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 6fd8d82d
......@@ -1412,9 +1412,13 @@ static size_t multibyteToWString(string<wchar_t>& destination, const char* sourc
{
destination.reserve(sourceSize+1);
#if defined(_MSC_VER)
#pragma warning(suppress: 4996) // 'mbstowcs': This function or variable may be unsafe. Consider using mbstowcs_s instead.
#pragma warning(push)
#pragma warning(disable: 4996) // 'mbstowcs': This function or variable may be unsafe. Consider using mbstowcs_s instead.
#endif
size_t written = mbstowcs(destination.array, source, (size_t)sourceSize);
#if defined(_MSC_VER)
#pragma warning(pop)
#endif
destination.used = (u32)written;
destination.array[destination.used] = 0;
return written;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment