This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
broken definition of INVALID_FILE_ATTRIBUTES
- From: Varga Zoltan <vargaz at freemail dot hu>
- To: cygwin at cygwin dot com
- Date: Mon, 29 Sep 2003 12:53:43 +0200 (CEST)
- Subject: 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/