crt: Make __mingw_module_is_dll const

Value of __mingw_module_is_dll must not be changed during runtime.

Signed-off-by: LIU Hao <lh_mouse@126.com>
diff --git a/mingw-w64-crt/crt/crtdll.c b/mingw-w64-crt/crt/crtdll.c
index 86f5252..d72947d 100644
--- a/mingw-w64-crt/crt/crtdll.c
+++ b/mingw-w64-crt/crt/crtdll.c
@@ -208,4 +208,4 @@
   return retcode ;
 }
 
-char __mingw_module_is_dll = 1;
+const char __mingw_module_is_dll = 1;
diff --git a/mingw-w64-crt/crt/crtexe.c b/mingw-w64-crt/crt/crtexe.c
index 5ffbe60..e7dbcff 100644
--- a/mingw-w64-crt/crt/crtexe.c
+++ b/mingw-w64-crt/crt/crtexe.c
@@ -338,4 +338,4 @@
     return _crt_atexit(func);
 }
 
-char __mingw_module_is_dll = 0;
+const char __mingw_module_is_dll = 0;
diff --git a/mingw-w64-crt/crt/tls_atexit.c b/mingw-w64-crt/crt/tls_atexit.c
index 36ec633..337a1a8 100644
--- a/mingw-w64-crt/crt/tls_atexit.c
+++ b/mingw-w64-crt/crt/tls_atexit.c
@@ -30,7 +30,7 @@
 };
 
 HANDLE __dso_handle;
-extern char __mingw_module_is_dll;
+extern const char __mingw_module_is_dll;
 
 static CRITICAL_SECTION lock;
 static int inited = 0;
diff --git a/mingw-w64-crt/misc/ucrt_at_quick_exit.c b/mingw-w64-crt/misc/ucrt_at_quick_exit.c
index 5999552..ac53614 100644
--- a/mingw-w64-crt/misc/ucrt_at_quick_exit.c
+++ b/mingw-w64-crt/misc/ucrt_at_quick_exit.c
@@ -10,7 +10,7 @@
 #include <stdlib.h>
 #include <corecrt_startup.h>
 
-extern char __mingw_module_is_dll;
+extern const char __mingw_module_is_dll;
 
 int __cdecl at_quick_exit(void (__cdecl *func)(void))
 {