delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Fri, 27 Apr 2001 11:36:05 -0400 |
From: | Christopher Faylor <cgf AT redhat DOT com> |
To: | Cygwin Mailing List <Cygwin AT cygwin DOT com> |
Subject: | Re: S_IXUSR & Co macro problem - zsh does not compile under current cygwin. |
Message-ID: | <20010427113605.G5680@redhat.com> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | Cygwin Mailing List <Cygwin AT cygwin DOT com> |
References: | <001001c0cef3$e9e9ead0$21c9ca95 AT mow DOT siemens DOT ru> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.11i |
In-Reply-To: | <001001c0cef3$e9e9ead0$21c9ca95@mow.siemens.ru>; from Andrej.Borsenkow@mow.siemens.ru on Fri, Apr 27, 2001 at 12:27:36PM +0400 |
On Fri, Apr 27, 2001 at 12:27:36PM +0400, Andrej Borsenkow wrote: >#if defined (__CYGWIN__) && !defined (__INSIDE_CYGWIN__) >extern unsigned const _cygwin_S_IEXEC, _cygwin_S_IXUSR, _cygwin_S_IXGRP, >_cygwin >_S_IXOTH; >#undef S_IEXEC >#undef S_IXUSR >#undef S_IXGRP >#undef S_IXOTH >#define S_IEXEC _cygwin_S_IEXEC >#define S_IXUSR _cygwin_S_IXUSR >#define S_IXGRP _cygwin_S_IXGRP >#define S_IXOTH _cygwin_S_IXOTH >#endif > > >SUS does not clear specify if these macros should be #defines. But, is it >necessary to make them external variables? const is real const in C++ but not >in C, sigh. Nope, not necessary at all. This is just part of a massive "Arbitrarily make everything a global variable" campaign. Phase two will be to have Cygwin prompt you for the values of the variables whenever you want to use them. cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |