fix non-Codecvt build

This commit is contained in:
Syping 2021-10-12 01:03:17 +02:00
parent cfc0af179f
commit 8ea05274f0
2 changed files with 3 additions and 1 deletions

View file

@ -451,6 +451,8 @@ bool RagePhoto::save(char *data, PhotoFormat photoFormat)
char photoHeader[256];
memcpy(photoHeader, photoString.data(), photoString_size);
#else
const size_t photoString_size = 0;
char photoHeader[256];
std::cout << "UTF-16LE encoding support missing" << std::endl;
p_error = Error::UnicodeInitError; // 4
return false;