delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/09/29/06:54:33

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <vargaz AT freemail DOT hu>
Subject: broken definition of INVALID_FILE_ATTRIBUTES
To: cygwin AT cygwin DOT com
Message-ID: <freemail.20030829125343.42906@fm4.freemail.hu>
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

                                  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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019