Allow compiling on VS with (/Zc:wchar_t-) set.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4966 dfc29bdd-3216-0410-991c-e03cc46cb475
master
cutealien 2014-10-12 22:32:39 +00:00
parent 2b7751f95c
commit c8c9733e0f
1 changed files with 3 additions and 0 deletions

View File

@ -383,7 +383,10 @@ namespace io
xmlChar<T>(unsigned long in) : c(static_cast<T>(in)) {}
#else
explicit xmlChar<T>(unsigned char in) : c(static_cast<T>(in)) {}
#if !defined(_MSC_VER) || defined(_NATIVE_WCHAR_T_DEFINED) // VS compiling without native wchar_t can't have it
explicit xmlChar<T>(unsigned short in) : c(static_cast<T>(in)) {}
#endif
explicit xmlChar<T>(unsigned int in) : c(static_cast<T>(in)) {}
explicit xmlChar<T>(unsigned long in) : c(static_cast<T>(in)) {}
#endif