This macro is used only on few places in .c files, not in .h files.
So remove its usage and dead code.
---
 mingw-w64-crt/crt/crtdll.c   | 7 -------
 mingw-w64-crt/crt/crtexe.c   | 1 -
 mingw-w64-crt/crt/dll_argv.c | 4 ----
 mingw-w64-crt/crt/dllargv.c  | 4 ----
 mingw-w64-crt/crt/tlssup.c   | 4 ----
 5 files changed, 20 deletions(-)

diff --git a/mingw-w64-crt/crt/crtdll.c b/mingw-w64-crt/crt/crtdll.c
index 6c6ea38f03f7..31ad70b1afac 100644
--- a/mingw-w64-crt/crt/crtdll.c
+++ b/mingw-w64-crt/crt/crtdll.c
@@ -4,8 +4,6 @@
  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  */
 
-#ifdef CRTDLL
-#undef CRTDLL
 #ifndef _DLL
 #define _DLL
 #endif
@@ -19,16 +17,12 @@
 #include <crtdbg.h>
 
 #ifndef _CRTIMP
-#ifdef CRTDLL
-#define _CRTIMP __declspec(dllexport)
-#else
 #ifdef _DLL
 #define _CRTIMP __declspec(dllimport)
 #else
 #define _CRTIMP
 #endif
 #endif
-#endif
 #include <sect_attribs.h>
 #include <locale.h>
 
@@ -204,7 +198,6 @@ i__leave:
   __native_dllmain_reason = UINT_MAX;
   return retcode ;
 }
-#endif
 
 int __cdecl atexit (_PVFV func)
 {
diff --git a/mingw-w64-crt/crt/crtexe.c b/mingw-w64-crt/crt/crtexe.c
index f10265055b4c..1ee235e9893f 100644
--- a/mingw-w64-crt/crt/crtexe.c
+++ b/mingw-w64-crt/crt/crtexe.c
@@ -4,7 +4,6 @@
  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  */
 
-#undef CRTDLL
 #ifndef _DLL
 #define _DLL
 #endif
diff --git a/mingw-w64-crt/crt/dll_argv.c b/mingw-w64-crt/crt/dll_argv.c
index 19eeda7cd6d9..4e2674dc5eca 100644
--- a/mingw-w64-crt/crt/dll_argv.c
+++ b/mingw-w64-crt/crt/dll_argv.c
@@ -4,10 +4,6 @@
  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  */
 
-#ifdef CRTDLL
-#undef CRTDLL
-#endif
-
 #include <internal.h>
 
 extern int _dowildcard;
diff --git a/mingw-w64-crt/crt/dllargv.c b/mingw-w64-crt/crt/dllargv.c
index df0453430d0e..d6be1bc7c2cf 100644
--- a/mingw-w64-crt/crt/dllargv.c
+++ b/mingw-w64-crt/crt/dllargv.c
@@ -4,10 +4,6 @@
  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  */
 
-#ifdef CRTDLL
-#undef CRTDLL
-#endif
-
 #include <internal.h>
 
 int __CRTDECL
diff --git a/mingw-w64-crt/crt/tlssup.c b/mingw-w64-crt/crt/tlssup.c
index 3ff03971e90d..b1d7a98f2c1b 100644
--- a/mingw-w64-crt/crt/tlssup.c
+++ b/mingw-w64-crt/crt/tlssup.c
@@ -6,10 +6,6 @@
  * Written by Kai Tietz  <kai.ti...@onevision.com>
  */
 
-#ifdef CRTDLL
-#undef CRTDLL
-#endif
-
 #include <sect_attribs.h>
 
 #ifndef WIN32_LEAN_AND_MEAN
-- 
2.20.1



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to