MSVC Fixes

This commit is contained in:
Jason Turner
2015-03-13 22:27:51 -06:00
parent c584c29951
commit b71f9db5c2
2 changed files with 4 additions and 4 deletions

View File

@@ -150,8 +150,8 @@ namespace chaiscript
return std::string(t_str.begin(), t_str.end());
}
#ifdef _UNICODE
template<typename T>
#if defined(_UNICODE) || defined(UNICODE)
template<typename T>
static std::wstring to_proper_string(const T &t_str)
{
return to_wstring(t_str);
@@ -166,7 +166,7 @@ namespace chaiscript
static std::string get_error_message(DWORD t_err)
{
#ifdef _UNICODE
#if defined(_UNICODE) || defined(UNICODE)
typedef LPWSTR StringType;
std::wstring retval = L"Unknown Error";
#else