This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

broken definition of INVALID_FILE_ATTRIBUTES


                                  Hi All,

  I believe the definition of INVALID_FILE_ATTRIBUTES in
/usr/include/w32api/winnt.h is broken:

#define INVALID_FILE_ATTRIBUTES	(DWORD (-1))

It is missing a () around DWORD. To try this out, use the
following test program:

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

#include <windows.h>

void main ()
{
        printf ("X: %d.\n", INVALID_FILE_ATTRIBUTES);
}

<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

                                                         bye

                                                           
   Zoltan



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]