#634 winnt.h:157 'typedef BOOLEAN' syntax error

WSL
closed
nobody
None
rejected
Invalid
2013-01-25
2004-08-06
Mike Parker
No

Compiling the 15a release of ng-spice on my Win2000
machine under cygwin (with gcc v3.3.1-3) , the make
process is halted when gcc reports a syntax error before
the ',' of line 157 of winnt.h:

typedef BYTE BOOLEAN,*PBOOLEAN;

Breaking the typedef over two lines:

typedef BYTE BOOLEAN;
typedef BYTE *PBOOLEAN;

removes the syntax error and allows ng-spice to
successfully build.

Regards,

Mike

Discussion

  • Dimitri Papadopoulos

    • status: open --> closed-rejected
     
  • Dimitri Papadopoulos

    Logged In: YES
    user_id=52414

    The typedef looks legal to me. Does this still break with
    more recent gcc compilers?

    Please reopen if that's still an issue today.

     
  • Earnie Boyd

    Earnie Boyd - 2013-01-25
    • labels: w32api (deprecated use WSL) -->
    • status: closed-rejected --> closed
    • resolution: --> rejected
    • category: --> Invalid
    • milestone: --> WSL
     

Log in to post a comment.