broken definition of INVALID_FILE_ATTRIBUTES

Varga Zoltan vargaz@freemail.hu
Mon Sep 29 11:14:00 GMT 2003


                                  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/



More information about the Cygwin mailing list