view src/gdcm-1-nosecapi.patch @ 6454:9b5b81c294f9 release

of-sparsersb: Cherry-pick patch from upstream (bug #61393). * src/of-sparsersb-2-tempdir.patch: Cherry-pick upstream patch to release tarball. * dist-files.mk: Add new file to dist.
author Markus Mützel <markus.muetzel@gmx.de>
date Sat, 15 Oct 2022 15:25:49 +0200
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>