--- gdcm-3.0.8/Utilities/getopt/getopt.h.orig	2020-10-13 09:40:48.964337600 +0300
+++ gdcm-3.0.8/Utilities/getopt/getopt.h	2020-10-13 09:40:38.576190500 +0300
@@ -67,13 +67,7 @@
   #define GETOPT_EXPORT
 #endif /*defined(WIN32)*/
 
-#if defined(_WIN32) && defined(GETOPT_DLL)
-  #if defined(gdcmgetopt_EXPORTS)
-    #define GETOPT_EXTERN __declspec( dllexport )
-  #else
-    #define GETOPT_EXTERN __declspec( dllimport )
-  #endif
-#else
+#if defined(_WIN32)
   #define GETOPT_EXTERN extern
 #endif /*defined(WIN32)*/
 
