view src/gdcm-1-nosecapi.patch @ 5579:2734b3818171

Avoid double-free with librsb (bug #58957). * src/librsb.mk: Add work-around to avoid double-free (provided by Michele Martone). * src/mingw-of-sparsersb-1-no-render.patch: Remove patch. * dist-files.mk: Remove file from list.
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 02 Nov 2020 08:55:18 +0100
parents 15551fc621fa
children
line wrap: on
line source

diff -ur gdcm-2.0.19.orig/Source/Common/gdcmException.h gdcm-2.0.19/Source/Common/gdcmException.h
--- gdcm-2.0.19.orig/Source/Common/gdcmException.h	2014-07-26 11:45:31 -0400
+++ gdcm-2.0.19/Source/Common/gdcmException.h	2014-07-26 11:57:11 -0400
@@ -14,6 +14,13 @@
 #ifndef GDCMEXCEPTION_H
 #define GDCMEXCEPTION_H
 
+#ifdef __MINGW32__
+  #include <_mingw.h>
+  #ifdef MINGW_HAS_SECURE_API
+    #undef MINGW_HAS_SECURE_API
+  #endif
+#endif
+
 #include <cassert>
 #include <cstdlib> // NULL
 #include <exception>