From: SF/projects/mingw n. l. <min...@li...> - 2012-10-21 17:14:56
|
Bugs item #1198530, was opened at 2005-05-09 12:46 Message generated for change (Settings changed) made by earnie You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1198530&group_id=2435 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: MSYS >Group: Aged issue >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Julien Lecomte (julienlecomte) Assigned to: Earnie Boyd (earnie) Summary: wchar && need_size_t Initial Comment: header /msys/rt/winsup/cygwin/include needs "#define __need_size_t" otherwise 'sed' won't compile. ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2005-05-11 05:11 Message: Logged In: YES user_id=15438 Thanks for the documented bug. The point, please provide documentation that a header is broken. I'll fix the fact that FILE isn't defined as well. ---------------------------------------------------------------------- Comment By: Julien Lecomte (julienlecomte) Date: 2005-05-11 04:50 Message: Logged In: YES user_id=827175 I'ld go with 'this isn't a sed bug'... http://www.opengroup.org/onlinepubs/007908799/xsh/wchar.h.html Current CVS of newlib's libc also defines __need_size_t in wchar.h For testing try to compile with the commented line and without commenting the same line: #ifndef _WCHAR_H #define _WCHAR_H #include <sys/cdefs.h> /* Get wchar_t and wint_t from <stddef.h>. */ #define __need_wchar_t #define __need_wint_t //#define __need_size_t #include <stddef.h> __BEGIN_DECLS int wcscmp (const wchar_t *__s1, const wchar_t *__s2); size_t wcslen (const wchar_t *__s1); __END_DECLS #endif /* _WCHAR_H */ int main(){return;} ---------------------------------------------------------------------- Comment By: Earnie Boyd (earnie) Date: 2005-05-10 03:52 Message: Logged In: YES user_id=15438 Is it documented that including wchar.h will define size_t? Otherwise it would be a sed bug. Give me a pointer to documentation and I'll change it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=1198530&group_id=2435 |