Use free Windows DDK and compile with latest MinGW releases.
[reactos.git] / reactos / lib / msvcrt / mbstring / ismblead.c
index f15f3ec..0dab86f 100644 (file)
@@ -8,14 +8,12 @@
  *             Modified from Taiji Yamada japanese code system utilities
  *              12/04/99: Created
  */
+#include <msvcrti.h>
 
-#include <msvcrt/mbstring.h>
-#include <msvcrt/stdlib.h>
-#include <msvcrt/mbctype.h>
 
 size_t _mbclen2(const unsigned int s);
 
-char _jctype[257] = {
+unsigned char _mbctype[257] = {
 /*-1*/  ___,
 /*0x*/  ___,___,___,___,___,___,___,___,___,___,___,___,___,___,___,___,
 /*1x*/  ___,___,___,___,___,___,___,___,___,___,___,___,___,___,___,___,
@@ -35,7 +33,6 @@ char _jctype[257] = {
 /*Fx*/  _12,_12,_12,_12,_12,_12,_12,_12,_12,_12,_12,_12,_12,___,___,___
 };
 
-char *_mbctype = _jctype;
 int _ismbblead(unsigned int c)
 {
        return ((_jctype+1)[(unsigned char)(c)] & _KNJ_1);