Mercurial > love-experiments
diff src/modules/filesystem/physfs/Filesystem.cpp @ 1146:a4d516668953
Use "L" to force wide literal string.
If multi-byte character set is chosen, TEXT() does not produce a wide string,
causing compilation errors.
| author | rude |
|---|---|
| date | Sun, 18 Nov 2012 10:53:17 +0100 |
| parents | 86a44f2bc38f |
| children | b7f097053d74 |
line wrap: on
line diff
--- a/src/modules/filesystem/physfs/Filesystem.cpp Thu Oct 18 13:29:13 2012 +0200 +++ b/src/modules/filesystem/physfs/Filesystem.cpp Sun Nov 18 10:53:17 2012 +0100 @@ -236,7 +236,7 @@ #ifdef LOVE_WINDOWS if (appdata.empty()) { - wchar_t *w_appdata = _wgetenv(TEXT("APPDATA")); + wchar_t *w_appdata = _wgetenv(L"APPDATA"); appdata = to_utf8(w_appdata); replace_char(appdata, '\\', '/'); }
