Fix win32 somewhat?

This commit is contained in:
2025-04-16 07:39:30 -05:00
parent c831174e18
commit bf3ae1fa02
6 changed files with 65 additions and 6 deletions

View File

@@ -245,7 +245,11 @@ namespace Tesses::CrossLang
size_t offset = 0;
uint8_t buff[1024];
do {
#if defined(_WIN32)
read = min(min(tableLen-offset,tableLen), sizeof(buff));
#else
read = std::min(std::min(tableLen-offset,tableLen), sizeof(buff));
#endif
read = strm->Read(buff,read);
if(read > 0)
strm2->WriteBlock(buff,read);