Import a part of mingw-w64's "ctype.h" into our "ctype.h"
authorColin Finck <colin@reactos.org>
Sat, 14 Mar 2009 01:13:03 +0000 (01:13 +0000)
committerColin Finck <colin@reactos.org>
Sat, 14 Mar 2009 01:13:03 +0000 (01:13 +0000)
This way we can already remove one modification I did to the original mingw-w64 CRT initialization code

Thanks to Timo for the hint

svn path=/trunk/; revision=40007

reactos/include/crt/ctype.h
reactos/include/reactos/mingw-w64/internal.h

index 4c899ac..d881539 100644 (file)
@@ -48,6 +48,20 @@ extern "C" {
 # endif /* !_CTYPE_DISABLE_MACROS */
 #endif /* !_CRT_WCTYPEDATA_DEFINED */
 
+  /* CRT stuff */
+#if 1
+  extern const unsigned char __newclmap[];
+  extern const unsigned char __newcumap[];
+  extern pthreadlocinfo __ptlocinfo;
+  extern pthreadmbcinfo __ptmbcinfo;
+  extern int __globallocalestatus;
+  extern int __locale_changed;
+  extern struct threadlocaleinfostruct __initiallocinfo;
+  extern _locale_tstruct __initiallocalestructinfo;
+  pthreadlocinfo __cdecl __updatetlocinfo(void);
+  pthreadmbcinfo __cdecl __updatetmbcinfo(void);
+#endif
+
 #define _UPPER 0x1
 #define _LOWER 0x2
 #define _DIGIT 0x4
index 8786e25..10b637f 100644 (file)
@@ -166,8 +166,6 @@ extern char **_imp___wcmdln;
   PIMAGE_SECTION_HEADER __cdecl _FindPESection (PBYTE pImageBase, DWORD_PTR rva);
   BOOL __cdecl _IsNonwritableInCurrentImage (PBYTE pTarget);
 
-  extern int __globallocalestatus;
-
 #ifdef __cplusplus
 }
 #endif