--- src/Controller/Src/Filter/DTR.cpp.orig 2024-09-12 07:10:36 UTC +++ src/Controller/Src/Filter/DTR.cpp @@ -23,6 +23,9 @@ #include #include #include +#if __FreeBSD__ +#include +#endif namespace epsonscan { static const int kMaxBuf = 256; @@ -584,7 +587,7 @@ ESNumber CustomSkipLevelAsPercent(ESNumber inLevel) dtrExecCommand << " "; dtrExecCommand << "0"; dtrExecCommand << " "; - dtrExecCommand << (keyMgr->GetValueInt(kSDIAutoColorPixelTypeKey) == kSDIAutoColorPixelTypeAuto) ? 1 : 0; + dtrExecCommand << ((keyMgr->GetValueInt(kSDIAutoColorPixelTypeKey) == kSDIAutoColorPixelTypeAuto) ? 1 : 0); dtrExecCommand << " "; dtrExecCommand << keyMgr->GetValueInt(kSDIAutoColorPixelLevelKey); SDI_TRACE_LOG("dtrExecCommand = %s", dtrExecCommand.str().c_str());