diff Core/DicomParsing/FromDcmtkBridge.cpp @ 3594:0654d0838de8

disable thread support in DCMTK if wasm/asm.js
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 06 Jan 2020 17:59:34 +0100
parents 33cfcc74d1b1
children 94f4a18a79cc
line wrap: on
line diff
--- a/Core/DicomParsing/FromDcmtkBridge.cpp	Mon Jan 06 17:58:15 2020 +0100
+++ b/Core/DicomParsing/FromDcmtkBridge.cpp	Mon Jan 06 17:59:34 2020 +0100
@@ -177,18 +177,18 @@
     };
 
     
-#define DCMTK_TO_CTYPE_CONVERTER(converter, cType, dcmtkType, getter) \
- \
-    struct converter \
-    { \
-      typedef cType CType; \
- \
-      static bool Apply(CType& result, \
-                        DcmElement& element, \
-                        size_t i) \
-      { \
+#define DCMTK_TO_CTYPE_CONVERTER(converter, cType, dcmtkType, getter)   \
+                                                                        \
+    struct converter                                                    \
+    {                                                                   \
+      typedef cType CType;                                              \
+                                                                        \
+      static bool Apply(CType& result,                                  \
+                        DcmElement& element,                            \
+                        size_t i)                                       \
+      {                                                                 \
         return dynamic_cast<dcmtkType&>(element).getter(result, i).good(); \
-      } \
+      }                                                                 \
     };
 
 DCMTK_TO_CTYPE_CONVERTER(DcmtkToSint32Converter, Sint32, DcmSignedLong, getSint32)