Hi Ron, > You should probably report this one directly upstream, but before you do, > please read: http://mingw.org/Reporting_Bugs ... in particular the part > about them requiring you to provide references to the source of the > information that you used to create this patch. Without such a reference > to documentation that we can freely draw from to provide the missing > symbols you require, I'm afraid they probably won't be able to apply this > patch.
A reference to MSDN is sufficient? http://msdn.microsoft.com/en-us/library/se784sk6.aspx As to __TCHAR_DEFINED -> _TCHAR _TCHAR_DEFINED -> TCHAR I believe it is common knowledge. As to the patch, those line of code where not copied from anywhere, but written by me. So, all mistakes are also mine. Sorry. Here is the corrected version of the patch: === --- tchar.h.orig 2007-09-22 23:45:50.000000000 +0400 +++ tchar.h 2008-12-02 17:43:20.000000000 +0300 @@ -43,11 +43,21 @@ #ifndef _TCHAR_DEFINED #ifndef RC_INVOKED typedef wchar_t TCHAR; -typedef wchar_t _TCHAR; #endif /* Not RC_INVOKED */ #define _TCHAR_DEFINED #endif +#ifndef __TCHAR_DEFINED +#ifndef RC_INVOKED +typedef wchar_t _TCHAR; +typedef wchar_t _TSCHAR; +typedef wchar_t _TUCHAR; +typedef wchar_t _TXCHAR; +typedef wint_t _TINT; +#endif /* Not RC_INVOKED */ +#define __TCHAR_DEFINED +#endif + /* * Use _TEOF instead of EOF or WEOF. It will be appropriately translated if * _UNICODE is correctly defined (or not). @@ -231,11 +241,25 @@ #ifndef _TCHAR_DEFINED #ifndef RC_INVOKED typedef char TCHAR; -typedef char _TCHAR; #endif #define _TCHAR_DEFINED #endif +#ifndef __TCHAR_DEFINED +#ifndef RC_INVOKED +typedef char _TCHAR; +typedef signed char _TSCHAR; +typedef unsigned char _TUCHAR; +#ifdef _MBCS +typedef unsigned char _TXCHAR; +#else +typedef char _TXCHAR; +#endif +typedef int _TINT; +#endif /* Not RC_INVOKED */ +#define __TCHAR_DEFINED +#endif + /* * _TEOF, the constant you should use instead of EOF. */ === Thanks, Dmitry -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]