diff --git a/include/irrXML.h b/include/irrXML.h index 4e51b508..67ac76e9 100644 --- a/include/irrXML.h +++ b/include/irrXML.h @@ -383,7 +383,10 @@ namespace io xmlChar(unsigned long in) : c(static_cast(in)) {} #else explicit xmlChar(unsigned char in) : c(static_cast(in)) {} + +#if !defined(_MSC_VER) || defined(_NATIVE_WCHAR_T_DEFINED) // VS compiling without native wchar_t can't have it explicit xmlChar(unsigned short in) : c(static_cast(in)) {} +#endif explicit xmlChar(unsigned int in) : c(static_cast(in)) {} explicit xmlChar(unsigned long in) : c(static_cast(in)) {} #endif