Mercurial > hg > orthanc
changeset 6238:376adcf7cabb
fix windows builds
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 10 Jul 2025 10:08:14 +0200 |
parents | f36bd6c5e996 |
children | 5c9fc31d1555 |
files | OrthancServer/Plugins/Samples/ConnectivityChecks/OrthancFrameworkDependencies.cpp OrthancServer/Plugins/Samples/DelayedDeletion/OrthancFrameworkDependencies.cpp |
diffstat | 2 files changed, 30 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/Plugins/Samples/ConnectivityChecks/OrthancFrameworkDependencies.cpp Wed Jul 09 23:39:28 2025 +0200 +++ b/OrthancServer/Plugins/Samples/ConnectivityChecks/OrthancFrameworkDependencies.cpp Thu Jul 10 10:08:14 2025 +0200 @@ -29,8 +29,23 @@ #if BOOST_LOCALE_WITH_ICU == 1 # undef BOOST_LOCALE_WITH_ICU +# if ORTHANC_STATIC_ICU == 1 +# include <unicode/udata.h> + +// Define an empty ICU dictionary for static builds +extern "C" +{ + struct + { + double bogus; + uint8_t *bytes; + } U_ICUDATA_ENTRY_POINT = { 0.0, NULL }; +} + +# endif #endif + #include "../../../../OrthancFramework/Sources/ChunkedBuffer.cpp" #include "../../../../OrthancFramework/Sources/Enumerations.cpp" #include "../../../../OrthancFramework/Sources/Logging.cpp"
--- a/OrthancServer/Plugins/Samples/DelayedDeletion/OrthancFrameworkDependencies.cpp Wed Jul 09 23:39:28 2025 +0200 +++ b/OrthancServer/Plugins/Samples/DelayedDeletion/OrthancFrameworkDependencies.cpp Thu Jul 10 10:08:14 2025 +0200 @@ -29,8 +29,23 @@ #if BOOST_LOCALE_WITH_ICU == 1 # undef BOOST_LOCALE_WITH_ICU +# if ORTHANC_STATIC_ICU == 1 +# include <unicode/udata.h> + +// Define an empty ICU dictionary for static builds +extern "C" +{ + struct + { + double bogus; + uint8_t *bytes; + } U_ICUDATA_ENTRY_POINT = { 0.0, NULL }; +} + +# endif #endif + #include "../../../../OrthancFramework/Sources/ChunkedBuffer.cpp" #include "../../../../OrthancFramework/Sources/Compression/DeflateBaseCompressor.cpp" #include "../../../../OrthancFramework/Sources/Compression/GzipCompressor.cpp"