This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36530] ptrdiff_t undefined if <stddef.h> is included after <wchar.h> and <wctype.h>
- From: "faridz at apache dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Jun 2008 15:03:31 -0000
- Subject: [Bug c++/36530] ptrdiff_t undefined if <stddef.h> is included after <wchar.h> and <wctype.h>
- References: <bug-36530-16325@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from faridz at apache dot org 2008-06-17 15:03 -------
You're right, the problem in Ubuntu's /usr/include/wctype.h header file:
-----------
...
/* Get wint_t from <wchar.h>. */
#define __need_wint_t
#include <wchar.h>
...
-----------
Here after that lines should be "#undef __need_wint_t"...
--
faridz at apache dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36530