# HG changeset patch # User Sebastien Jodogne # Date 1769529440 -3600 # Node ID fb668ef280afe2ed084b673f0b4da731d0ff006c # Parent 0f0c9103fea8f93c9a2a77760aa613937c002eee replaced boost::math::iround() by Orthanc::Math::iround() diff -r 0f0c9103fea8 -r fb668ef280af MySQL/Plugins/MySQLStorageArea.cpp --- a/MySQL/Plugins/MySQLStorageArea.cpp Mon Jan 26 12:37:00 2026 +0100 +++ b/MySQL/Plugins/MySQLStorageArea.cpp Tue Jan 27 16:57:20 2026 +0100 @@ -28,11 +28,10 @@ #include "../../Framework/MySQL/MySQLTransaction.h" #include "MySQLDefinitions.h" -#include // For std::unique_ptr<> +#include // For std::unique_ptr<> +#include // For Orthanc::Math::iround() #include -#include - namespace OrthancDatabases { @@ -47,8 +46,8 @@ int64_t size; if (db.LookupGlobalIntegerVariable(size, "max_allowed_packet")) { - int mb = boost::math::iround(static_cast(size) / - static_cast(1024 * 1024)); + int mb = Orthanc::Math::iround(static_cast(size) / + static_cast(1024 * 1024)); LOG(WARNING) << "Your MySQL server cannot " << "store DICOM files larger than " << mb << "MB"; LOG(WARNING) << " => Consider increasing \"max_allowed_packet\" "