[cfe-dev] cygwin #define bug?
xuzhongxing at gmail.com
Tue Jul 27 22:30:02 PDT 2010
Yes, I met exactly the same problem.
On Wed, Jul 28, 2010 at 1:08 PM, Jordy Rose <jediknil at belkadan.com> wrote:
> Probably related to PR7571 / this thread:
> The gist of it is stddef.h is being included before _types.h, the
> reinclude is caught by the header guard, and the __need_wint_t is ignored.
> Does that match your situation?
> Last I saw, the most correct proposed solution was moving the __need*
> specifics outside the header guard, but of course that loses the
> include-once optimization.
> On Wed, 28 Jul 2010 11:57:12 +0800, Zhongxing Xu <xuzhongxing at gmail.com>
>> In cygwin, _types.h file has the following define:
>> #define __need_wint_t
>> #include <stddef.h>
>> But in stddef.h, __need_wint_t is not defined. I'm sure stddef.h is
>> included. So the wint_t type is not defined. Why could this happen?
More information about the cfe-dev