#728 winnt.h syntax error

closed-fixed
nobody
2005-03-05
2005-03-04
No

In the w32api, include/winnt.h has this at line 209:
#define INVALID_FILE_ATTRIBUTES (DWORD (-1))

MS Visual Studio .Net 2003 defines it as:
#define INVALID_FILE_ATTRIBUTES ((DWORD)-1)
This is in PlatformSDK/Include/WinBase.h line 62.

This syntax problem was found in "the wild" while
compiling glib-2.6.2 (and 2.6.3), glib/gfileutils.c:142:
int attributes;
...
if (attributes == INVALID_FILE_ATTRIBUTES) {...}

The above is being compiled by MingW 3.1.0, gcc 3.4.2.
The actual syntax error is "error at token before "-" ".

Discussion

  • Danny Smith

    Danny Smith - 2005-03-05

    Logged In: YES
    user_id=11494

    You must have an old version of winnt.h in the wild. This was
    fixed over a year ago.
    Danny

     
  • Danny Smith

    Danny Smith - 2005-03-05
    • status: open --> closed-fixed
     
  • Brent Burton

    Brent Burton - 2005-03-05

    Logged In: YES
    user_id=23420

    This header is from the precompiled "current" mingw
    installer available from mingw.org/download. Version 3.1.0.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks