Mercurial > hg > orthanc
comparison Resources/Patches/dcmtk-3.6.5.patch @ 3719:d737173197e1
upgraded DCMTK to 3.6.5
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Mar 2020 14:19:12 +0100 |
parents | |
children | a49d49d945c9 |
comparison
equal
deleted
inserted
replaced
3717:914f783ef085 | 3719:d737173197e1 |
---|---|
1 diff -urEb dcmtk-3.6.5.orig/dcmdata/include/dcmtk/dcmdata/dcdict.h dcmtk-3.6.5/dcmdata/include/dcmtk/dcmdata/dcdict.h | |
2 --- dcmtk-3.6.5.orig/dcmdata/include/dcmtk/dcmdata/dcdict.h 2020-03-05 14:04:24.601846050 +0100 | |
3 +++ dcmtk-3.6.5/dcmdata/include/dcmtk/dcmdata/dcdict.h 2020-03-05 14:05:12.517692125 +0100 | |
4 @@ -152,6 +152,12 @@ | |
5 /// returns an iterator to the end of the repeating tag dictionary | |
6 DcmDictEntryListIterator repeatingEnd() { return repDict.end(); } | |
7 | |
8 + // Function by the Orthanc project to load a dictionary from a | |
9 + // memory buffer, which is necessary in sandboxed | |
10 + // environments. This is an adapted version of | |
11 + // DcmDataDictionary::loadDictionary(). | |
12 + OFBool loadFromMemory(const std::string& content, OFBool errorIfAbsent = OFTrue); | |
13 + | |
14 private: | |
15 | |
16 /** private undefined assignment operator | |
17 diff -urEb dcmtk-3.6.5.orig/dcmdata/libsrc/dcdict.cc dcmtk-3.6.5/dcmdata/libsrc/dcdict.cc | |
18 --- dcmtk-3.6.5.orig/dcmdata/libsrc/dcdict.cc 2020-03-05 14:04:24.605846037 +0100 | |
19 +++ dcmtk-3.6.5/dcmdata/libsrc/dcdict.cc 2020-03-05 14:05:37.605611405 +0100 | |
20 @@ -900,3 +900,6 @@ | |
21 wrlock().clear(); | |
22 wrunlock(); | |
23 } | |
24 + | |
25 + | |
26 +#include "dcdict_orthanc.cc" | |
27 diff -urEb dcmtk-3.6.5.orig/dcmdata/libsrc/dcpxitem.cc dcmtk-3.6.5/dcmdata/libsrc/dcpxitem.cc | |
28 --- dcmtk-3.6.5.orig/dcmdata/libsrc/dcpxitem.cc 2020-03-05 14:04:24.605846037 +0100 | |
29 +++ dcmtk-3.6.5/dcmdata/libsrc/dcpxitem.cc 2020-03-05 14:06:10.033506933 +0100 | |
30 @@ -36,6 +36,9 @@ | |
31 #include "dcmtk/dcmdata/dcostrma.h" /* for class DcmOutputStream */ | |
32 #include "dcmtk/dcmdata/dcwcache.h" /* for class DcmWriteCache */ | |
33 | |
34 +#undef max | |
35 +#include "dcmtk/ofstd/oflimits.h" | |
36 + | |
37 | |
38 // ******************************** | |
39 | |
40 diff -urEb dcmtk-3.6.5.orig/oflog/include/dcmtk/oflog/thread/syncpub.h dcmtk-3.6.5/oflog/include/dcmtk/oflog/thread/syncpub.h | |
41 --- dcmtk-3.6.5.orig/oflog/include/dcmtk/oflog/thread/syncpub.h 2020-03-05 14:04:24.609846024 +0100 | |
42 +++ dcmtk-3.6.5/oflog/include/dcmtk/oflog/thread/syncpub.h 2020-03-05 14:06:52.469370023 +0100 | |
43 @@ -63,7 +63,7 @@ | |
44 | |
45 DCMTK_LOG4CPLUS_INLINE_EXPORT | |
46 Mutex::Mutex (Mutex::Type t) | |
47 - : mtx (DCMTK_LOG4CPLUS_THREADED (new impl::Mutex (t)) + 0) | |
48 + : mtx (DCMTK_LOG4CPLUS_THREADED (new impl::Mutex (t))) | |
49 { } | |
50 | |
51 | |
52 @@ -106,7 +106,7 @@ | |
53 DCMTK_LOG4CPLUS_INLINE_EXPORT | |
54 Semaphore::Semaphore (unsigned DCMTK_LOG4CPLUS_THREADED (max), | |
55 unsigned DCMTK_LOG4CPLUS_THREADED (initial)) | |
56 - : sem (DCMTK_LOG4CPLUS_THREADED (new impl::Semaphore (max, initial)) + 0) | |
57 + : sem (DCMTK_LOG4CPLUS_THREADED (new impl::Semaphore (max, initial))) | |
58 { } | |
59 | |
60 | |
61 @@ -148,7 +148,7 @@ | |
62 | |
63 DCMTK_LOG4CPLUS_INLINE_EXPORT | |
64 FairMutex::FairMutex () | |
65 - : mtx (DCMTK_LOG4CPLUS_THREADED (new impl::FairMutex) + 0) | |
66 + : mtx (DCMTK_LOG4CPLUS_THREADED (new impl::FairMutex)) | |
67 { } | |
68 | |
69 | |
70 @@ -190,7 +190,7 @@ | |
71 | |
72 DCMTK_LOG4CPLUS_INLINE_EXPORT | |
73 ManualResetEvent::ManualResetEvent (bool DCMTK_LOG4CPLUS_THREADED (sig)) | |
74 - : ev (DCMTK_LOG4CPLUS_THREADED (new impl::ManualResetEvent (sig)) + 0) | |
75 + : ev (DCMTK_LOG4CPLUS_THREADED (new impl::ManualResetEvent (sig))) | |
76 { } | |
77 | |
78 | |
79 @@ -252,7 +252,7 @@ | |
80 | |
81 DCMTK_LOG4CPLUS_INLINE_EXPORT | |
82 SharedMutex::SharedMutex () | |
83 - : sm (DCMTK_LOG4CPLUS_THREADED (new impl::SharedMutex) + 0) | |
84 + : sm (DCMTK_LOG4CPLUS_THREADED (new impl::SharedMutex)) | |
85 { } | |
86 | |
87 | |
88 diff -urEb dcmtk-3.6.5.orig/ofstd/include/dcmtk/ofstd/offile.h dcmtk-3.6.5/ofstd/include/dcmtk/ofstd/offile.h | |
89 --- dcmtk-3.6.5.orig/ofstd/include/dcmtk/ofstd/offile.h 2020-03-05 14:04:24.637845935 +0100 | |
90 +++ dcmtk-3.6.5/ofstd/include/dcmtk/ofstd/offile.h 2020-03-05 14:07:17.097290468 +0100 | |
91 @@ -575,7 +575,7 @@ | |
92 */ | |
93 void setlinebuf() | |
94 { | |
95 -#if defined(_WIN32) || defined(__hpux) | |
96 +#if defined(_WIN32) || defined(__hpux) || defined(__LSB_VERSION__) | |
97 this->setvbuf(NULL, _IOLBF, 0); | |
98 #else | |
99 :: setlinebuf(file_); |