diff --git a/src/platform_cygwin.cc b/src/platform_cygwin.cc index d6ad3e1ff5..2c874c74b7 100644 --- a/src/platform_cygwin.cc +++ b/src/platform_cygwin.cc @@ -84,7 +84,7 @@ static inline char* _getProcessTitle() { char *title; int length, length_w; - length_w = GetConsoleTitleW(L"\0", sizeof(WCHAR)); + length_w = GetConsoleTitleW((WCHAR*)L"\0", sizeof(WCHAR)); // If length is zero, there may be an error or the title may be empty if (!length_w) { diff --git a/src/platform_win32.cc b/src/platform_win32.cc index b828cc5a0b..af8f7e7eb5 100644 --- a/src/platform_win32.cc +++ b/src/platform_win32.cc @@ -85,7 +85,7 @@ static inline char* _getProcessTitle() { char *title; int length, length_w; - length_w = GetConsoleTitleW(L"\0", sizeof(WCHAR)); + length_w = GetConsoleTitleW((WCHAR*)L"\0", sizeof(WCHAR)); // If length is zero, there may be an error or the title may be empty if (!length_w) {