Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 29 Sep 2003 12:53:43 +0200 (CEST) From: Varga Zoltan Subject: broken definition of INVALID_FILE_ATTRIBUTES To: cygwin AT cygwin DOT com Message-ID: X-Originating-IP: [212.121.135.226] X-HTTP-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20030916 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-2 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 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/