[SDK][CRT] Fix _ismbblead undefined error on MSVC
[reactos.git] / sdk / lib / crt / startup / crtexe.c
index 1bd193b..fa20f41 100644 (file)
@@ -20,6 +20,9 @@
 #include <tchar.h>
 #include <sect_attribs.h>
 #include <locale.h>
 #include <tchar.h>
 #include <sect_attribs.h>
 #include <locale.h>
+#ifdef _MBCS
+#include <mbstring.h>
+#endif
 
 #ifndef __winitenv
 extern wchar_t *** __MINGW_IMP_SYMBOL(__winitenv);
 
 #ifndef __winitenv
 extern wchar_t *** __MINGW_IMP_SYMBOL(__winitenv);
@@ -128,10 +131,11 @@ pre_c_init (void)
     {
       __setusermatherr (_matherr);
     }
     {
       __setusermatherr (_matherr);
     }
-
+#ifndef __clang__ /* FIXME: CORE-14042 */
   if (__globallocalestatus == -1)
     {
     }
   if (__globallocalestatus == -1)
     {
     }
+#endif
   return 0;
 }
 
   return 0;
 }