#768 wchar && need_size_t

None
closed-fixed
Earnie Boyd
MSYS (75)
2013-01-18
2005-05-09
Julien
No

header /msys/rt/winsup/cygwin/include needs
"#define __need_size_t"
otherwise 'sed' won't compile.

Discussion

  • Earnie Boyd
    Earnie Boyd
    2005-05-10

    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.

     
  • Julien
    Julien
    2005-05-11

    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;}

     
  • Earnie Boyd
    Earnie Boyd
    2005-05-11

    • status: open --> open-accepted
     
  • Earnie Boyd
    Earnie Boyd
    2005-05-11

    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.

     
  • Earnie Boyd
    Earnie Boyd
    2012-10-21

    • milestone: 102880 --> Aged_issue
    • status: open-accepted --> closed-fixed