Skip to content

Commit

Permalink
Add _MSC_VER guard to convertCharPointerToStdString()
Browse files Browse the repository at this point in the history
  • Loading branch information
g40 committed Apr 6, 2024
1 parent 0b687c3 commit 187b0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RtAudio.cpp
Expand Up @@ -74,7 +74,7 @@ std::string convertCharPointerToStdString(const char *text)
template<> inline
std::string convertCharPointerToStdString(const wchar_t *text)
{
#if 1
#if defined(_MSC_VER)
if (!text)
return std::string();
const int wchars = (int) wcslen(text);
Expand Down

0 comments on commit 187b0e8

Please sign in to comment.