annotate OrthancFramework/Resources/Patches/dcmtk-3.6.7.patch @ 5253:1700fe5c9737 db-protobuf

integration mainline->db-protobuf
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 08 Apr 2023 11:44:05 +0200
parents 6ad2bea0e07e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5067
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 diff -urEb dcmtk-3.6.7.orig/CMake/GenerateDCMTKConfigure.cmake dcmtk-3.6.7/CMake/GenerateDCMTKConfigure.cmake
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2 --- dcmtk-3.6.7.orig/CMake/GenerateDCMTKConfigure.cmake 2022-08-15 14:28:32.373922631 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 +++ dcmtk-3.6.7/CMake/GenerateDCMTKConfigure.cmake 2022-08-15 14:29:43.341136298 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4 @@ -183,6 +183,8 @@
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6 # Check the sizes of various types
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 include (CheckTypeSize)
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 +if (NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 + # This doesn't work for wasm, Orthanc defines the macros manually
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 CHECK_TYPE_SIZE("char" SIZEOF_CHAR)
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 CHECK_TYPE_SIZE("double" SIZEOF_DOUBLE)
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 CHECK_TYPE_SIZE("float" SIZEOF_FLOAT)
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 @@ -190,6 +192,7 @@
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 CHECK_TYPE_SIZE("long" SIZEOF_LONG)
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 CHECK_TYPE_SIZE("short" SIZEOF_SHORT)
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16 CHECK_TYPE_SIZE("void*" SIZEOF_VOID_P)
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 +endif()
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 # Check for include files, libraries, and functions
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 include("${DCMTK_CMAKE_INCLUDE}CMake/dcmtkTryCompile.cmake")
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 diff -urEb dcmtk-3.6.7.orig/dcmdata/include/dcmtk/dcmdata/dcdict.h dcmtk-3.6.7/dcmdata/include/dcmtk/dcmdata/dcdict.h
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
22 --- dcmtk-3.6.7.orig/dcmdata/include/dcmtk/dcmdata/dcdict.h 2022-08-15 14:28:32.421922100 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
23 +++ dcmtk-3.6.7/dcmdata/include/dcmtk/dcmdata/dcdict.h 2022-08-15 14:30:16.224771418 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
24 @@ -162,6 +162,12 @@
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
25 /// returns an iterator to the end of the repeating tag dictionary
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
26 DcmDictEntryListIterator repeatingEnd() { return repDict.end(); }
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
27
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
28 + // Function by the Orthanc project to load a dictionary from a
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
29 + // memory buffer, which is necessary in sandboxed
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
30 + // environments. This is an adapted version of
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
31 + // DcmDataDictionary::loadDictionary().
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
32 + OFBool loadFromMemory(const std::string& content, OFBool errorIfAbsent = OFTrue);
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
33 +
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
34 private:
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
35
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
36 /** private undefined assignment operator
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
37 diff -urEb dcmtk-3.6.7.orig/dcmdata/libsrc/dcdict.cc dcmtk-3.6.7/dcmdata/libsrc/dcdict.cc
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
38 --- dcmtk-3.6.7.orig/dcmdata/libsrc/dcdict.cc 2022-08-15 14:28:32.421922100 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
39 +++ dcmtk-3.6.7/dcmdata/libsrc/dcdict.cc 2022-08-15 14:31:15.220116058 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
40 @@ -892,3 +892,5 @@
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
41 wrlock().clear();
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
42 wrunlock();
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
43 }
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
44 +
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
45 +#include "dcdict_orthanc.cc"
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
46 diff -urEb dcmtk-3.6.7.orig/dcmdata/libsrc/dcpxitem.cc dcmtk-3.6.7/dcmdata/libsrc/dcpxitem.cc
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
47 --- dcmtk-3.6.7.orig/dcmdata/libsrc/dcpxitem.cc 2022-08-15 14:28:32.425922056 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
48 +++ dcmtk-3.6.7/dcmdata/libsrc/dcpxitem.cc 2022-08-15 14:31:28.887964099 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
49 @@ -31,6 +31,9 @@
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
50 #include "dcmtk/dcmdata/dcostrma.h" /* for class DcmOutputStream */
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
51 #include "dcmtk/dcmdata/dcwcache.h" /* for class DcmWriteCache */
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
52
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
53 +#undef max
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
54 +#include "dcmtk/ofstd/oflimits.h"
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
55 +
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
56
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
57 // ********************************
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
58
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
59 diff -urEb dcmtk-3.6.7.orig/oflog/include/dcmtk/oflog/thread/syncpub.h dcmtk-3.6.7/oflog/include/dcmtk/oflog/thread/syncpub.h
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
60 --- dcmtk-3.6.7.orig/oflog/include/dcmtk/oflog/thread/syncpub.h 2022-08-15 14:28:32.401922322 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
61 +++ dcmtk-3.6.7/oflog/include/dcmtk/oflog/thread/syncpub.h 2022-08-15 14:31:52.415702413 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
62 @@ -63,7 +63,7 @@
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
63
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
64 DCMTK_LOG4CPLUS_INLINE_EXPORT
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
65 Mutex::Mutex (Mutex::Type t)
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
66 - : mtx (DCMTK_LOG4CPLUS_THREADED (new impl::Mutex (t) + 0))
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
67 + : mtx (DCMTK_LOG4CPLUS_THREADED (new impl::Mutex (t)))
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
68 { }
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
69
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
70
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
71 @@ -106,7 +106,7 @@
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
72 DCMTK_LOG4CPLUS_INLINE_EXPORT
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
73 Semaphore::Semaphore (unsigned DCMTK_LOG4CPLUS_THREADED (max),
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
74 unsigned DCMTK_LOG4CPLUS_THREADED (initial))
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
75 - : sem (DCMTK_LOG4CPLUS_THREADED (new impl::Semaphore (max, initial) + 0))
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
76 + : sem (DCMTK_LOG4CPLUS_THREADED (new impl::Semaphore (max, initial)))
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
77 { }
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
78
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
79
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
80 @@ -190,7 +190,7 @@
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
81
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
82 DCMTK_LOG4CPLUS_INLINE_EXPORT
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
83 ManualResetEvent::ManualResetEvent (bool DCMTK_LOG4CPLUS_THREADED (sig))
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
84 - : ev (DCMTK_LOG4CPLUS_THREADED (new impl::ManualResetEvent (sig) + 0))
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
85 + : ev (DCMTK_LOG4CPLUS_THREADED (new impl::ManualResetEvent (sig)))
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
86 { }
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
87
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
88
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
89 @@ -252,7 +252,7 @@
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
90
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
91 DCMTK_LOG4CPLUS_INLINE_EXPORT
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
92 SharedMutex::SharedMutex ()
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
93 - : sm (DCMTK_LOG4CPLUS_THREADED (new impl::SharedMutex + 0))
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
94 + : sm (DCMTK_LOG4CPLUS_THREADED (new impl::SharedMutex))
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
95 { }
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
96
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
97
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
98 diff -urEb dcmtk-3.6.7.orig/oflog/libsrc/oflog.cc dcmtk-3.6.7/oflog/libsrc/oflog.cc
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
99 --- dcmtk-3.6.7.orig/oflog/libsrc/oflog.cc 2022-08-15 14:28:32.405922278 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
100 +++ dcmtk-3.6.7/oflog/libsrc/oflog.cc 2022-08-15 14:32:16.815430896 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
101 @@ -19,6 +19,10 @@
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
102 *
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
103 */
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
104
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
105 +#if defined(_WIN32)
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
106 +# include <winsock2.h>
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
107 +#endif
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
108 +
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
109 #include "dcmtk/config/osconfig.h" /* make sure OS specific configuration is included first */
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
110 #include "dcmtk/oflog/oflog.h"
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
111
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
112 diff -urEb dcmtk-3.6.7.orig/ofstd/include/dcmtk/ofstd/offile.h dcmtk-3.6.7/ofstd/include/dcmtk/ofstd/offile.h
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
113 --- dcmtk-3.6.7.orig/ofstd/include/dcmtk/ofstd/offile.h 2022-08-15 14:28:32.425922056 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
114 +++ dcmtk-3.6.7/ofstd/include/dcmtk/ofstd/offile.h 2022-08-15 14:32:41.471156396 +0200
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
115 @@ -570,7 +570,7 @@
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
116 */
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
117 void setlinebuf()
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
118 {
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
119 -#if defined(_WIN32) || defined(__hpux)
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
120 +#if defined(_WIN32) || defined(__hpux) || defined(__LSB_VERSION__)
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
121 this->setvbuf(NULL, _IOLBF, 0);
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
122 #else
6ad2bea0e07e upgrade to DCMTK 3.6.7
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
123 :: setlinebuf(file_);